In minted, how do I highlight a particular set of keywords by making them bold. Say for example consider the MWE,
\documentclass[a4paper , 12pt]{article}
\usepackage{minted}
\usemintedstyle{manni}
\begin{document}
\begin{minted}{java}
class Test
{
public static void main(String args[])
{
System.out.println("Hello World");
}
}
\end{minted}
\end{document}
The above generates this:
Now, whenever I use the keyword class
, it should be in bold. How do I do that?
Best Answer
AFAIK, there is no such option with
minted
. But withlistings
it is easy. you can useor
Or
etc.
Here is some sample: