Re: [gedit-list] gedit syntax highlighting



Il giorno ven, 24/06/2005 alle 22.42 +0200, Jakub Narojczyk ha scritto:
> How can I add a language to gedit database so it recognizes and 
> highlights new synatx?


The syntax highlighting is provided by the GtkSourceView library. To add
a new language you need to create a .lang file and drop it
in /usr/share/gtksourceview-1.0/language-specs (or if you don't have
access there you can also add it to ~/gtksourceview-1.0/language-specs).
The .lang files are xml files describing the syntax. Unfortunately there
is no documentation yet on how to create such files, but creating one
should be pretty straightforward if you look at the other files as
examples.


paolo




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]