lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 22/10/2009, at 12:08 PM, Yuri Takhteyev wrote:

People often use client-side Javascript, e.g. Alex Gorbatchev's syntax
highlighter does Lua as well as the usual suspects.

Actually, Lua support isn't included with SyntaxHighlighter by the
default. The reason Sputnik gets to show off syntax highlighting for
Lua is because Sérgio Medeiros and I wrote a Lua "brush" for
SyntaxHighlighter, see [1]. However, we've been too lazy to get in
touch with Alex Gorbatchev about this. If someone wants to take on
this task, please feel welcome to do so.

BTW, our syntaxhighlighter module [2] wraps SyntaxHighlighter's JS and
CSS in Lua, to enable installing SyntaxHighlighter as a rock and then
serving JS and CSS from the rock. But again, I haven't gotten around
to actually releasing this as a rock.

- yuri

[1]: http://gitorious.org/sputnik/mainline/blobs/master/syntaxhighlighter/lua/syntaxhighlighter/scripts/shBrushLua.lua

[2]: http://gitorious.org/sputnik/mainline/trees/master/syntaxhighlighter/lua

Thanks.  I just grabbed the two listed here:

http://www.undermyhat.org/blog/2009/09/list-of-brushes-syntaxhighligher/

both of which seem to be for an earlier version of lua and needed a little fixing.

Cheers,
Geoff