Linux 软件免费装
Banner图

SyntaxHighlighter Evolved: LSL Brush

开发者 GwynethLlewelyn
更新时间 2014年4月17日 02:22
捐献地址: 去捐款
PHP版本: 3.0 及以上
WordPress版本: 3.5.1

标签

html css php code syntax highlight sourcecode xhtml second life lsl linden scripting language

下载

1.0.0 1.1.0 1.2.0

详情介绍:

Programmer bloggers writing about Second Life and using Linden Scripting Language (LSL) examples on their WordPress sites often tend to have problems in displaying LSL properly so that it can be easily copied & pasted; it happens to me all the time! Fortunately, there is a way out: Viper007Bond wrote an excellent syntax highlighter (SyntaxHighlighter Evolved) which has easy support for additional languages. This is what this plugin does: it just extends Viper007Bond's plugin without fuss. It is a brush designed to work with the SyntaxHighlighter Evolved WordPress plugin (written by Viper), itself based on the SyntaxHighlighter JavaScript package by Alex Gorbatchev. To be able to use this brush, you will need the SyntaxHighlighter Evolved plugin installed. To highlight your LSL code, simply wrap it between [lsl] and [/lsl] tags. On some setups, it's better to use <pre class='lang: lsl;'> </pre>. LSL syntax is current as of April 2013 (source: Official Second Life Wiki/Cool VL Viewer), recognises a few obsolete keywords (for backwards compatibility), and adds OpenSimulator-specific commands as well (source: Cool VL Viewer). CSS Styles are as similar as possible to what the SL Viewer 2 displays (but you can choose the normal styling as well, too). Instructions follow the same outline as the asm-brush, a brush for SyntaxHighlighter Evolved developed by chlankboot, and the plugin structure itself is as suggested by Viper007Bond.

安装:

Uploading The Plugin Extract all files from the ZIP file, making sure to keep the file/folder structure intact, and then upload it to /wp-content/plugins/. Plugin Usage Make sure you have the SyntaxHighlighter Evolved plugin installed first! Wrap your Linden Scripting Language code between [lsl] and [/lsl]. On some setups, it's better to use <pre class='lang: lsl;'> </pre>.

屏幕截图:

  • Sample LSL code formatted with syntaxhighlighter-evolved-lsl

升级注意事项:

1.0.0 First release. LSL syntax as of February 2011.

常见问题:

How can I add instructions to the brush?

By editing the shBrushLsl.js file.

更新日志:

1.2.0 Adds a nice banner and fixes author link, but, more important than that, LSL syntax is updated to reflect the latest changes, both of the Linden Lab variant, as well as OpenSimulator-specific commands. 1.1.0 Adds styling to highlighting to make it more similar to LSL as displayed by the SL Viewer 1.0.0 First release. LSL syntax as of February 2011.