Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[che-dev] Custom syntax highlighting

Hi,
 
I'd like to have a custom syntax highlighter for my DSL, is there any examples on how I could do it?
Just as a side note, my parser runs on the server side, through a REST service, because it depends on external libraries that I can't provide the source code for in GWT.
 
Ideally, the colors should be different depending on the semantics of the tokens (for example, in Java, the color of a class name would be different than a variable name). I think Eclipse Che only highlights reserved keywords at the moment, so the colors of all identifiers are the same, regardless of their "meaning" (class name/variable name).
To reduce the impact of the network latency, I'd first highlight the reserved keywords (and maybe strings) on the client side and once the parsing is done on the server side, I'd highlight the other tokens accordingly.
 
Any suggestions on how to achieve this (at least  the custom client-side highlighting)?
 
Thanks,
Gianluca Righetto
 
 
 

Back to the top