Seems I’m intent on working more on the back-end of my site than posting something. Oh well, I’ve developed an GeSHi LSL highlighter using the official colours from the internal SL code editor, so I can do stuff like insert code like this:
default { touch_start(integer total_number) { if(llSameGroup(llDetectedKey(0))) { integer items = llGetInventoryNumber(INVENTORY_ALL); list itemlist; string nametemp; integer i = 0; for(i=0;i < items;i++) { nametemp = llGetInventoryName(INVENTORY_ALL, i); if(nametemp != llGetScriptName()) itemlist += [nametemp]; } llGiveInventoryList(llDetectedKey(0), llGetObjectName(), itemlist); } } }
I’ve had to add a CSS rule in the k2 stylesheets to make the background match the editor’s which is kind of annoying and not as good as you can see.
If you’re interested in nabbing this highlighter, throw some comments, I might post it up if there’s enough demand.