source-highlighting

Add a new language to source-highlight


I created a new language file and added it to source-highlight's language directory (/usr/local/cellar/source-highlight/3.1.7/share/source-highlight), but when I run $ source-highlight --lang-list, it isn't listed.

What do I need to do to register the language with source-highlight?


Solution

  • I had to add the language to the lang.map file:

    # crystal reports formula language
    crystal = crystal.lang