I´m looking for any help with little problem with listings package. I tried find some example on google, but no luck.
I have some bash output (response) and I need put them to my project. For this purpose I´m using the listings package (it´s great).
(I´m using listings, color package)
There is a part of my response:
Code: Select all
[00:00:00] 80 keys tested (256.41 k/s)
KEY FOUND! [ 12345678 ]
Master Key : 37 3E FB 3B F8 6E 40 41 69 07 16 26 FE 89 81 AD
F4 CF 55 95 93 51 CB ED 50 35 0A A2 04 ED C9 29
Transcient Key : 79 A4 3D 2B 5F 00 99 3D 83 BD 11 4B FE C1 D9 83
My code for LaTeX is:
Code: Select all
\lstset{backgroundcolor=\color{bezovaC}, basicstyle=\scriptsize, language=bash,
moredelim=[is][\bfseries]{|}{|},
%
classoffset=0,
keywords=[1]{KEY, FOUND}, keywordstyle=[1]\color{red}\bfseries,
classoffset=1,
otherkeywords={!},
classoffset=0
}
%
\begin{lstlisting}[frame=single, framerule=1pt]
Aircrack-ng 0.9.1 r687
[00:00:00] 80 keys tested (256.41 k/s)
KEY FOUND! [ 12345678 ]
Master Key : 37 3E FB 3B F8 6E 40 41 69 07 16 26 FE 89 81 AD
F4 CF 55 95 93 51 CB ED 50 35 0A A2 04 ED C9 29
Transcient Key : 79 A4 3D 2B 5F 00 99 3D 83 BD 11 4B FE C1 D9 83
\end{lstlisting}
%
"12345678" in blue
"Master Key" in green
"37 3E FB 3B F8 6E 40 41 69 07..." in other color and so on...
Anybody known the way how can I do that?

Is there something like tags <...> and by the definitions everything inside is coloured?
Any idea? Thank to everybody for any help.
(Sorry to my english grammar, I hope that it is understandable
