LSL posting tool for community.secondlife.com

Add or remove colors for LSL code in pre blocks

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Cherry M (Cerise)
日安装量
0
总安装量
23
评分
0 0 0
版本
20150312
创建于
2015-03-13
更新于
2015-03-13
大小
24.9 KB
许可证
暂无
适用于

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