lua-users home
lua-l archive

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


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(&quot;<i>Hello</i>&quot;);
<b>end</b>