LSL posting tool for community.secondlife.com

Add or remove colors for LSL code in pre blocks

Author
Cherry M (Cerise)
Daily installs
0
Total installs
19
Ratings
0 0 0
Version
20150312
Created
Updated
License
N/A
Applies to

Author's Description

This adds two buttons for the rich text editor (TinyMCE) on community.secondlife.com. pre blocks (like those from the insert code button) will be highlighted assuming LSL. There is also a button to remove the highlights, in case the formatting looks wrong, or the style tags make the post too large. Right now this is an all or nothing operation, all pre blocks in the post or none will be highlighted. That could improve in the future, if I can find a nicer way into the iframe. Currently tested on Firefox and Chrome.

2015-03-12
SL switched its forum to https, also re-host at greasyfork.
2011-05-15
Temporarily remove wrapping fix because the new editor does not like it.
2011-04-17
llGetEnv and prerelease functions 'llGetSPMaxMemory', 'llScriptProfiler', 'llGetUsedMemory'
2011-04-17
special case reserved words print, event; special highlights for jump, @, default, state; typos
2011-04-16
move decimal ints to end of list, to capture floats w/trailing period