robotcode icon indicating copy to clipboard operation
robotcode copied to clipboard

[ENHANCEMENT] Highlight dictionary keys and values with different colors

Open mardukbp opened this issue 3 years ago • 2 comments

Is your enhancement request related to a problem? Please describe. When defining a dictionary with several keys and values, which are long strings it is very difficult to distinguish where the key ends and where the value begins.

Describe the solution you'd like Use two different colors for the key and the value.

Describe alternatives you've considered None.

Additional context Calva, the extension for Clojure, implements this, which improves the readability:

grafik

mardukbp avatar Oct 19 '22 16:10 mardukbp

can you give me an example in robotframe? what exactly should highlighted different?

d-biehl avatar Oct 20 '22 19:10 d-biehl

In the following example the dictionary keys firstname and lastname should have a different color than their associated values. That is, one color for the argument to the left of the equals sign and another color for the agument to its right.

*** Variables ***
&{developer}   firstname=Daniel   lastname=Biehl

This is also advantageous when working with the Browser library, where the element selectors have a similar syntax

css=buttton["disabled"]
text="Some text"

mardukbp avatar Oct 21 '22 10:10 mardukbp

The extension Robot Framework Language Server already does this. Maybe you can get some inspiration from it ;)

grafik

mardukbp avatar Dec 06 '22 12:12 mardukbp

Thank you :)

mardukbp avatar Dec 09 '22 13:12 mardukbp