Crayon Syntax Highlighter – .reg Support

Download

After testing quite a few different syntax highlighting plugins for WordPress my personal favorite is the Crayon Syntax Highlighter even though there aren’t as many programming languages supported. The reason I chose this plugin is simply because of the control it gives me and because of this control it stood out against all of the other plugins I tested.

I was in need of .reg support for the code I posted in my Replacing notepad with Notepad++ article so I decided to code it myself. If you haven’t edited any of the plugins files then you can simply extract the reg.zip file into your “crayon-syntax-highlighter” plugins folder.

Files edited:
themes\classic\classic.css
langs\extensions.txt

classic.css »

Added {css}@import “reg.css”;{/css} after theme info:

extensions.css »

Added {css}reg reg{/css} to a new line at the end of the file:

Files added:
themes\classic\reg.css
langs\reg\operator.txt
langs\reg\reg.txt
langs\reg\rootkeys.txt
langs\reg\type.txt
langs\reg\version.txt

reg.css »

operator.txt »

reg.txt »

rootkeys.txt »

type.txt »

version.txt »


 
UPDATE: When you update the Crayon Syntax Highlighter plugin all of the above changes will be erased. Each time you update the plugin you will have to re-add the .reg support.

4 Comments

| discussion on “Crayon Syntax Highlighter – .reg Support”

  1. squashbrain July 17, 2012 at 4:13 PM

    Send a copy of your work to the Crayon dev at
    http://ak.net84.net/projects/crayon-syntax-highlighter/

    He will probably add your hard work to the main source trunk.

  2. gbmhunter May 5, 2013 at 6:52 PM

    Can Crayon highlight VHDL? There is no option called “VHDL”, but I was wondering if it went under a different name?

    • Peter May 6, 2013 at 4:08 PM

      I don’t believe so but you can try emailing the developer a request to add support for VHDL. You could also just try to add the support yourself using the files I created as a guide.

Leave a Reply