Tagged Questions
3
votes
0answers
45 views
Highlighting keywords with spaces with the listings package [duplicate]
Possible Duplicate:
How to emphasize within a listing two successive identifiers separated by a space?
I am trying to highlight the following keywords with the listings package:
over ...
4
votes
1answer
173 views
How to highlight a non-ascii keyword using the listings package?
I'm trying to highlight a couple of keywords which contain non-ASCII characters using the listingsutf8 package. This is the relevant part of my document:
\usepackage[brazilian]{babel}
...
2
votes
1answer
920 views
How to highlight own keywords in HTML lstlistings?
I would like to highlight some words in a lstlisting. The language is HTML.
However, \emph seems not to be working with HTML.
Any suggestions how I could work around this problem?
Right now I have:
...
7
votes
1answer
606 views
listings package - Can I include a backslash \ in language keyword (\begin) for syntax highlighting in LaTeX code?
I want to highlight a LaTeX code (including backslash \, e.g. \begin). Unfortunately, by default a LaTeX listings package does syntax highlighting only keywords WITHOUT back slash (e.g. begin).