Syntax Highlighter Compress
How add new languages ? (4 posts)

  1. mcunha98
    Posted 4 years ago #

    I read everything in .js files but dont find how I create new language sintax files, for example I got the file shBrushErlang.js and change everything (keywords, functions, commets, etc...) that I need to make a new language sintax.

    But, in comboboxes of editor the new brush Alias dont appear, and if I put manually the new brush the highlight dont work


  2. agmorpheus
    Plugin Author

    Posted 4 years ago #

    for the syntax of a brush file your have to check out Alex Gorbatchev site.

    To add you brsuh file to the drop down box, you have to add an options tag to the window.php
    To make it work you also have to add the brush to the autoloader in the syntax-highlighter-compress.php

  3. mcunha98
    Posted 4 years ago #

    Thanks, I did it !
    Works fine, I did a sintax highlight for .shader files

  4. Raphael
    Posted 3 years ago #

    This way, you have to repeat all steps after an upgrade.

    Have you considered offering all brushes you find files for in scripts?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Syntax Highlighter Compress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic