Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Defining new syntax in Emacs

I have a custom config file format and I would like Emacs to recognize and highlight the syntax. Is this possible. If yes, how do we do it?

Thanks for your answers.

like image 974
Sahas Avatar asked Dec 03 '09 01:12

Sahas


1 Answers

Here is a link I used a whileback to create my own c# mode (before a more complete one was created):

Goes through step by step what to do.

Out of curiosity, which file format are you going to write?

As you might know, modes can be quite powerful, for example nxml mode actually validates XML schemas for you.

like image 66
Russell Avatar answered Sep 22 '22 02:09

Russell