[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:25:32 +0200
I've forgotten true,false,nil,return in the list of keywords :-)
--
e.v.e
On Mon, Aug 29, 2011 at 7:23 PM, Vyacheslav Egorov
<mister.aleph@gmail.com> wrote:
> 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.
>>
>>
>