Posts Tagged "GEdit"

Ubuntu Gedit Syntax highlighting

Gedit
If you have used GEdit to change a .jsp file you have probably realized that it doesn’t do the syntax highlighting by default. There are different ways to add the syntax highlighting to gedit. One way to do this is to add a new entry in /usr/share/gtksourceview-2.0/language-specs this folder holds multiple files which define the rules of the syntax highlighting being used by gedit. So what you need to do is to add a new file containing the highlighting specifications of your language to it. What I would recommend is to copy an already existing file and then modify it the way you want it. You can use the xml nodes in this file to assign the highlighting to specific file extensions i.e. To assign the highlighting to a file extention for instance “.jsp” you can use *.php;*.phtml To get more information please click here.

Read More