Wiki

Clone wiki

Addon - Pygments - LSL Lexer / Home

Description

This is a simple addon for the opensource project: pygments.

Pygments is a syntax highlighter written in python.

Pygments supports a lot of programming/scripting languages... but it still doesn't support LSL yet. Therefore I decided to code it myself.

I thought it would be useful to all SecondLife citizens.

All honest opinion are welcome!

Example

from pygments import highlight
import LSLLexer
from pygments.formatters import HtmlFormatter

highlight(lsl_code, LSLLexer(), HtmlFormatter(linenos=True))

ScreenShot

http://img15.imageshack.us/img15/6616/screenshotjk.th.png

Credits

CoolLife - SecondLife Underground Community

GB Consulting - CoolMinds Laboratory

Author

Updated