I have this pgfplots code that I want to put in a lstlisting environment:
\pgfplotsset{
every axis x label/.append style = {
font = \small
},
every axis y label/.append style = {
font = \small,
rotate = -90,
xshift = 0.5em
}
}
How can I convince the listings package that those strings like "every axis x label" have to be treated as identifiers? I don't like the idea of assigning the role of keyword to the single substrings "every", "axis", "x", "label".
:every axis x label:and so on... Listings can highlight everything between the colons (without printing them of course). See this question. – guillem Nov 20 '12 at 7:21