Tagged Questions
6
votes
2answers
131 views
Highlighting code like one would in a SE post
When posting on SE, users can "highlight" code by using the ` symbol. Is there any way to get that in LaTeX?
My intention is to highlight segments of code or particular functions. To be clear, I'm ...
4
votes
4answers
874 views
Verbatim environment with background color (PDFLaTeX and tex4ht)
I need to make a verbatim environment with gray background color, such as:
That needs to work with PDFTeX and tex4ht on an older TeX installation (from 2009 I believe). My approach so far is
...
2
votes
1answer
2k views
Background color in Verbatim
I've to use the yellow background for data values in the following code.
\usepackage
\begin{Verbatim}[commandchars=\\\{\}]
\color{blue}DATA \color{black}Heart;
\color{blue}INPUT \color{black}X Y @@;
...
