Supercollider Highlighter

Supercollider Highlighter logoVersion 0.9.3

Supercollider Highlighter 0.9.3 – (8KB) PHP 5+ required

Supercollider Highlighter is a PHP script that applies syntax colour-coding to Supercollider code files for presentation on the web. It was designed for the Supercollider a day project and is based on code from Scott Hewitt’s ChucK Highlighter.

To use this script:

  1. Copy sc_highlighting.php and sc_highlighting.css to your directory.
  2. Call the sc_add_stylesheet() function to add the formatting stylesheet. Use a string as the argument to add a prepath.
  3. Call the sc_highlighter() function with the path to your Supercollider code file as the argument. Code will be placed within <pre> tags automatically. The included demo file shows this process.

Change log:

  • 0.9.3: Fixed improper colouring of keywords within other words.
  • 0.9.2: Colouring of |arg declarations| added.
  • 0.9.1: sc_add_stylesheet() function added.
  • 0.9: First release.
This entry was posted in Code and tagged , , , .