I'm submitting a project that involves blocks of code.
I figured a nice way to present it by be that paragraphs of code are black text on a light gray background, in courier font.
I'm wondering if it would be possible to create an environment, called "code" for example, such that,
\begin{code}
...
...
\end{code}
would have the gray background, and be in courier font.
Any ideas would be greatly appreciated!
Best Answer
To use the courier font use,
To define a
code
environment you can use thelistings
package.