Thursday, February 10, 2011

Defining new syntax in Emacs

Hi,

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.

  • 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.

    Sahasranaman MS : Thanks for the answer. I'm writing a config file format with which we can store 3 levels of data. Actually I'm just experimenting with the format structure also. Felt syntax highlighting would help.
    Russell : You're welcome, glad I could help :) Good luck!
    From Russell

0 comments:

Post a Comment