ActiveState Powered by ActiveState

ActiveState Community


groovy colour scheme [groovy / grails syntax color highlighting in komodo IDE]

Posted by groovy on 2008-03-27 22:47
OS: All / Any

Hi everyone.

Liked komodo, groovy plugins for netbeans and eclipse weren't quite what I was after, but I wanted to have syntax highlighting for groovy in komodo, couldn't find.

How to get groovy syntax highlighting that 'works':

Edit {komodo directory}/lib/support/prefs.xml

Find lines:

'*.inc': 'PHP',
'*.java': 'Java',
'*.js': 'JavaScript',
'*.kix': 'Kix',
'*.kpf': 'XML',

add line...

'*.groovy': 'Java',

...underneath Java.

Now, also do the same for HTML and gsp files...

'*.gsp': 'HTML',

(Or you can use preferences > file associations)

Done! Code folding and highlighting is 'good enough' and the comments of course are easy to distinguish. Makes komodo superawesome.

Background: I like komodo because you can create a project with just a base directory. This makes it flexible for me. Another good thing is the way it handles splits, automatically refreshing files in project (editplus and eclipse, bad!). What really impressed me was the same-file, any context, auto-completion. If you have defined a variable called reallyWellThoughtOutNameThatDescribesTheDataAndPotentialUseAndSecurityConcernsOfThisVariable and are worried that typing this out again and again will be hard, you can reply on komodo to complete it for you.

Small Problems:

Narky behaviour when renaming a file, asks to close the open file of diff name... I deleted a file, then regenerated it again in place... and opened it, but the side panel still complained it was deleted - I fixed this by resaving the file that was in the buffer (I guess the side panel reflects the buffer status?)

.

ToddW | Wed, 2008-06-25 15:50

I've requested that these file associations be enabled by default for Komodo:
http://bugs.activestate.com/show_bug.cgi?id=78272

Cheers,
Todd

-->