I would like to make my listings
environnements more readable by coloring the background of some keywords with a specific color. Like this :
I thought using the \colorbox
function from xcolor
package but It only work with an argument (not as \color
) and doesn't work with listings.
Is there another way to get colored text background working with listings
environnement?
listings
allows for setting keywordstyles and also has a mechanism for escaping to LaTeX. However, it is rather unclear to me how you want to use it. (E.g., the picture you posted doesn't look at at like a listing!)