WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mcunha98
    Member
    Posted 3 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

    http://wordpress.org/extend/plugins/syntax-highlighter-compress/

  2. agmorpheus
    Member
    Plugin Author

    Posted 3 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
    Member
    Posted 3 years ago #

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

  4. Raphael
    Member
    Posted 2 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

About this Topic