8

Some times I wish the particular language I happen to be writing in had syntax highlighting. How can I add that?

badp
  • 2,977
  • 2
  • 24
  • 32

1 Answers1

9
  • GtkSourceView is a portable C library which supports configurable syntax highlighting in gedit.
  • Create an xml file with custom syntax highlighting for the language.
  • Save it in /usr/share/gtksourceview*/language-specs as language_name.lang

    Refer Language Definition v2.0 Reference for help with syntax highlighting.

iamsid
  • 2,484
  • 2
  • 22
  • 17