Possible Duplicate:
Manual highlight of TeX code in a verbatim environment
I want to highlight certain parts of a program output listing which represent user input. For example I want to use \textbf in this way:
$ \textbf{dmesg | tail}
...
[ 6854.215650] sd 7:0:0:0: [sdc] Mode Sense: 0b 00 00 08
[ 6854.215653] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[ 6854.215659] sdc: sdc1
[ 6854.218079] sd 7:0:0:0: [sdc] Attached SCSI removable disk
[ 6854.218135] sd 7:0:0:0: Attached scsi generic sg2 type 0
...
I am unable to do it in listings and minted. Moreover I can't find a list of supported languages by minted in order to set it to bash output.
minteduses a Python Pygments library. Look there for a list of supported languages. – Martin Scharrer May 16 '12 at 11:12\textbfwork insidemintedblock. – gc5 May 16 '12 at 11:23pygmentize -L lexers.:)– Paulo Cereda May 16 '12 at 11:24moredelimoption of listings to apply simple font commands, such as\bfseriesto highlight certain parts. – Daniel May 16 '12 at 12:09\DeclareFontShape{OT1}{cmtt}{bx}{n}{<5><6><7><8><9><10><10.95><12><14.4><17.28><20.74><24.88>cmttb10}{}and using\begin{lstlisting}[escapechar=@]@\textbf{text}@ \end{lstlisting}– gc5 May 16 '12 at 12:48