Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
  • 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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.