As I am new to Latex and this kind of typing in general, I find myself in need of some basic guidelines when it comes to how to make things look good in text. I have a document that looks good when typeset into a .pdf, but when I compile it to .html using htlatex the text loses its color, making it more difficult to distinguish from the surrounding text.
How can I write bash text so that it looks good when compiled into an html-file? Is there a commonly used method that makes bash look good?
Right now I use an environment every time:
\newenvironment{vtim}
{\color{magenta}
\begin{tt}
\fontsize{11pt}{11pt}\selectfont}
{\end{tt}}
And then, when I want bash in text:
\begin{vtim}
\$ Text text text text text
\end{vtim}

listingspackage. You will likely still lose the color, but you could then check out this question. – Sean Allred Jul 01 '14 at 12:03