Setting up gedit for groovy and grails
I use CentOS5 and Ubuntu 8.04.
Save groovy-mime.xml to your home directory.
Save groovy.lang to your home directory.
Save gsp-mime.xml to your home directory.
Save gsp.lang to your home directory.
The above 4 files are not under any restrictive license. They are for anyone who may want them for any use they may wish to put them to.
Log-in as root or you can also log-in as a non-root user with sudo permissions.
If you do login as a non-root user then you should make the appropriate changes to the commands below i.e. by adding sudo before each of the commands. Open a command line terminal and do:
mv ~/groovy-mime.xml /usr/share/mime/packages/
mv ~/groovy.lang /usr/share/gtksourceview-2.0/language-specs/
mv ~/gsp-mime.xml /usr/share/mime/packages/
mv ~/gsp.lang /usr/share/gtksourceview-2.0/language-specs/
Launch gedit and open a groovy file or a gsp file. You should now have syntax highlighting.