Category Archives: easy

highlighting 3d stuff

This tiny update is just to share a couple of brushes I wrote, in order to expand Syntax Highlighter and Code Colorizer for WordPress plugin, based on SyntaxHighlighter by Alex Gorbatchev.

While writing this, I’m realizing that the plugin is not fully supported (apparently, at least). I’ll consider the switch to different highlighting solutions, in the next future; anyway, for all those using that same plugin at present, and dealing with 3d, I thought that these two brushes might come in handy:

  • MEL brush is a modified version of Maulik Kataria‘s original brush; the upgrade extends highlighting to numeric values and MEL’s variables
  • RSL brush is for highlighting RenderMan Shading Language code; I wrote this because I’m going to publish code for RenderMan shortly (so stay tuned, if interested)

When adding the brushes to the plugin’s /scripts folder, remember to update the syntax-highlighter.php file, too. The brushes can definitely be further extended and prettified, but that’s a beginning. I’ll notify updates and improvements, if any.