When editing a Perl file, gedit 2.30.3 highlights FIXME
, TODO
and XXX
when they appear in a comment. Where is this documented? How can this be modified?
Asked
Active
Viewed 1,937 times
3

CW Holeman II
- 4,661
- 7
- 41
- 72
-
2You might find this question insightful - http://stackoverflow.com/questions/766775/creating-your-own-syntax-highlighting-in-gedit – Ether Jan 26 '11 at 22:02
-
From Ether's link, `grep FIXME $(locate gtksourceview | grep /perl.lang)`, I found nothing defining the handling of FIXME. – CW Holeman II Jan 26 '11 at 23:05
1 Answers
7
It's documented here: http://library.gnome.org/devel/gtksourceview/stable/lang-tutorial.html Do a search for "in-comment".
You can do modifications in the def.lang file located in /usr/share/gtksourceview-2.0/language-specs if you're on Ubuntu.
Run a search for "comment-note" and you'll see where the regex is declared.

Eddie Flores
- 1,093
- 13
- 14
-
1`def.lang` rather than `perl.lang` defines these values within a comment to get special highlighting: "FIXME|TODO|XXX". – CW Holeman II Feb 04 '11 at 05:48