Verbatim Text
The document module defines the verbatim environments similar to the one provided by LaTeX for including text as supplied with no formatting or styling.
document module
\begin{verbatim}[style=cssnames]
...
\end{verbatim}
Creates a verbatim block using the <pre> element. Be default, the block is indented from the left margin.
Key:
- style
-
The name of one or more style classes that are appended to the class name of the list. This allows for additional styling of the verbatim block. The current styles defined for a verbatim block are provided below:
Value Description indent indents the block over slightly from the left margin. compact reduces the inter-line spacing by setting the line height to 1em.
Plugin: VerbatimBlock
Example
source
- \begin{verbatim}
- Test this
- verbatim block of text.
- This is another line.
- \end{verbatim}
Test this verbatim block of text. This is another line.
results