How do I turn off syntax highlighting in minted?
Defining my DSL with a CFG and then a PEG; and the syntax highlighting is getting in the way.
How do I turn off syntax highlighting in minted?
Defining my DSL with a CFG and then a PEG; and the syntax highlighting is getting in the way.
There's a text lexer that highlights nothing.
I know this is an old question and G. Poore's answer was accepted long ago, however I leave this here in case it saves someone some time:
You could define the following command:
\usepackage[newfloat]{minted}
\usepackage[many]{tcolorbox}
\definecolor{Gray}{gray}{0.9}
\newcommand{\txtmint}[1]{\mintinline[fontsize=\scriptsize, bgcolor=Gray]{text}{#1}}
Which you can just use as: \txtmint{some code without syntax highlighting}.
Within the [] in the definition of the command, you can specify any options you want. With these settings you get something like this:
pyconlexer does the trick… – A T Sep 03 '13 at 07:00