Does anybody knows a way of specifying keywords for the listings package using regular expressions ?
For example the standard XML tags which are coloured are rather limited, and it would be nice to just be able to let the listings package recognize everything between <> as an XML keyword instead of having to add every used tag as a keyword individually
Text Formatting ⇒ Listings package and regular expressions
NEW: TikZ book now 40% off at Amazon.com for a short time.
-
- Posts: 126
- Joined: Sun Feb 13, 2011 8:36 pm
Listings package and regular expressions
Define a new "comment" type enclosed by < and > as described in section 3.3 (p. 22) in the listings documentation.
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).