[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Syntax Highlight for Lua Script
- From: "Eric Ries" <eries@...>
- Date: Wed, 2 Apr 2003 18:40:50 -0800
Is this portable? Will it work in Lua 4.0? I'd love to set up a CGI with
something like this on it, for formatting of embedded code used in my
product.
-----Original Message-----
From: owner-lua-l@tecgraf.puc-rio.br
[mailto:owner-lua-l@tecgraf.puc-rio.br]On Behalf Of Peter Shook
Sent: Wednesday, April 02, 2003 4:53 PM
To: Multiple recipients of list
Subject: Re: Syntax Highlight for Lua Script
I put something on the wiki back in the 5.0-alpha days, but some of it is
written in C.
http://lua-users.org/wiki/LexicalAnalysis
http://lua-users.org/files/wiki_insecure/users/pshook/LexLua/Lua2HTML.html
- Peter Shook
On Wednesday 02 April 2003 19:34, you wrote:
> I was hoping that someone has a Lua script that will perform
> syntax highlighting for Lua Script in HTML.
>
> e.g.
>
> if x == 1 then
> print("Hello");
> end
>
> becomes
>
> <b>if</b> x <b>==</b> 1 <b>then</b>
> print("<i>Hello</i>");
> <b>end</b>