robotcode
robotcode copied to clipboard
[ENHANCEMENT] Highlight dictionary keys and values with different colors
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:

can you give me an example in robotframe? what exactly should highlighted different?
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"
The extension Robot Framework Language Server already does this. Maybe you can get some inspiration from it ;)

Thank you :)