#1491 Question about DSL's

DanielFath Fri 15 Apr 2011

Is there any way to tell IDE how different DSL's should be syntax highlighted?

brian Fri 15 Apr 2011

Is there any way to tell IDE how different DSL's should be syntax highlighted?

Well a semantic IDE would know what the type of the DSL is by its base type. But it would then have to have some registry of DSL type to syntax definition.

For example I think Tales uses Client to mean JS code, so it would be cool to map everything in that DSL to JS syntax highlighting.

tcolar Fri 15 Apr 2011

In the netbeans IDE I already highlight the Tales Javascript, SQL and Client DSL differently (Js and SQL are highlighted "properly") I aslo have different color for the standrad Fantom DSL's (Regex and Str).

All other "unknown" DSL are highlighted as defined in the "DSL" color settings of the IDE.

Of course new DSL's highlighting need to be added "manually" (by me) ... but it's not too hard in the IE becuase the infrastructure is there (Embedded editor)

I suppose I could had an option to define your own "colors"(foreground, background) for whatever DSL you created (ie: match a SL type to a color scheme)

Login or Signup to reply.