Closed tom-metz closed 10 years ago
ad 2. That's strange, I have a working syntax highlighting for Groovy code. I'll try to dig into it a little bit more :-)
I think this problem should be fixed in the latest version (1.0.1). Please re-open if you still see the issue after updating.
Very nice improvement!
I just found, that there is different color for the scriptlet in tag attribute and out of it, but that's very low priority ;-)
You can look at the images in attachement, see the difference between ST and IntelliJ Idea.
Thanks for the feedback! I noticed that problem too, but I decided to leave it as is. It seems to be more of a colour scheme issue really. The cause is that scriptlets inside of tag attributes get extra scope selectors (as they should), for example to indicate that they are inside double or single quotes. The default colour schemes happen to provide colours for those scopes, so the result ends up looking different depending on where it is located. It is possible to edit a color scheme so that it works the way you want. For example, I just did a fast test with the Twilight theme. One way to get what you want would be to delete the definition for the scope "string constant", change the color of the scope "string source" to #FFFFFF, and add a new definition:
<dict>
<key>name</key>
<string>Groovy</string>
<key>scope</key>
<string>punctuation.definition.embedded</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#f00</string><!-- Bright red, yikes! -->
</dict>
</dict>
You're welcome, it's great, when someone makes anything more for the community! :-) I am not so deep in the ST, but this will force to start ;-) The autocompletion for dynamic finders is a challenge ;-)
There are 2 issues with scriptlet code in GSP