General ⇒ Listings: How to support hyphens in keywords?
Listings: How to support hyphens in keywords?
Foo-Bar : Value
Any ideas how to set "Foo-Bar" as keyword?
Thanks,
Ben
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Listings: How to support hyphens in keywords?
Another problem: by default some characters are not allowed inside keywords, for example ‘-’, ‘:’, ‘.’, and so on. The reference guide covers this problem by introducing some more keys, which let you adjust the standard character table appropriately.
So, read the section "Reference Guide"
Re: Listings: How to support hyphens in keywords?
alsoletter={-}