I'm preparing some slides with Beamer
and I've just discovered that the listings
package, which otherwise does exactly what I want, is missing the syntax for the Lua
language. How can I configure listings
to highlight Lua?
[Tex/LaTex] Lua syntax for the listings package
listingslua
Related Question
- [Tex/LaTex] Emphasizing words within a string using the listings package in LaTeX
- [Tex/LaTex] x86-64 assembler language dialect for the listings package
- [Tex/LaTex] How to highlight SPSS Syntax code with the listings package
- [Tex/LaTex] How to typeset Julia code with the listings package
- [Tex/LaTex] Listings: Correct syntax highlighting for bash // Use minted package with a box
Best Answer
The premise of your question is wrong. The
listings
package defines no fewer than three Lua "dialects" in the filelstdvrs.dtx
:[5.0]Lua
,[5.1]Lua
, and[5.2]Lua
. Pick whichever is appropriate. You may want to change the way things look, but you shouldn't have to redefine all the syntax from scratch.