adding lsl (and other languages) syntax highlighting to your wordpress

Get the synthihol plug-in. It comes with GeSHi, though you’ll probably want to get the latest version.
Follow the readme for the plug-in, and go grab my geshi language file for lsl. It’s a first version, but I think I covered everything. The colours are easy enough to change.

Geshi looks easy enough to add to any app actually.

  1. //This is a comment
  2.  
  3. integer bar = "TRUE";
  4.  
  5. default {
  6.     state_entry() {
  7.         llOwnerSay("HelloWorld");
  8.     }
  9.    
  10.     touch_start(integer num_detected) {
  11.         if(llDetectedKey(0) == llGetOwner()) {
  12.             llSay(DEBUG_CHANNEL,"Foo" );
  13.         }
  14.     }
  15. }

Leave a Reply


powered by wordpress. theme by max.