I have a similar structure like this:
\begin{lstlisting}[language=bash]
Family
|-father
|-mother
|-elderson
|-younger son
|-younger daughter
\end{lstlisting}
I need to make "mother" and "younger daughter" words in bold. How can I do it? i followed this Using bold/italic text inside listings?, but could not do it.
\usepackage{pxfonts}– darthbith Sep 18 '13 at 14:29\lstset{language=bash, basicstyle=\ttfamily, keywordstyle=\bfseries, showstringspaces=false, morekeywords={mother, younger daughter} }– Zafrullah Syed Sep 18 '13 at 14:37\lstsetmethod, had you put\usepackage{pxfonts}in your preamble? – darthbith Sep 18 '13 at 14:51\usepackage{pxfonts}. I do not know that I have to use that later when Karlkoeller mentioned regarding the font in my document, everything got cleared. – Zafrullah Syed Sep 18 '13 at 19:51