[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua syntax highlighting for LaTeX?
- From: Vyacheslav Egorov <mister.aleph@...>
- Date: Mon, 29 Aug 2011 19:23:18 +0200
You can easily teach listings to highlight Lua. It mostly requires copy&paste.
You locate lstlang3.sty and add something like:
\lst@definelanguage{Lua}%
{morekeywords={function,local,if,then,else,end,elseif,or,and,not,while,do,until,repeat},%
sensitive,%
morecomment=[l]{--},%
morecomment=[n]{--[[}{]]},%
morestring=[d]',%
morestring=[d]"%
}[keywords,comments,strings]%
there
--
e.v.e
On Mon, Aug 29, 2011 at 6:38 PM, Alexander Gladysh <agladysh@gmail.com> wrote:
> Hi, list!
>
> Does anyone know how to teach LaTeX to highlight Lua code?
>
> The listings package does not seem to support it...
>
> Thanks,
> Alexander.
>
>