View Full Version : Gedit + Java Highlighting

August 17th, 2009, 02:18 PM
So im using gEdit to work with java and i really like it but there is one small problem that is really annoying me, gEdit's syntax highlighting for .java files doesnt highlight the type "String" like it does for "int" and "double". So i though by adding this to the java.lang file, it would have then "String" highlighted:


i add that to the <context id="primitive-types" style-ref="type"> section of the java.lang file and save.

This does not seem to be working however, Is there any way to get "String" highlighted like it does for all the other types ?

August 17th, 2009, 02:58 PM
Fixed it.

Added "<style name="def:String".....> to my gEdit .xml styles sheet. Now "String" is highlighted like all the other variable types.

August 17th, 2009, 03:51 PM
cool thnx for the tip, i was always avoiding gedit with Java because of this reason..:)