<verbatim> – preformatted displayed materialxml:langidstyle/classPossible Contents: (Text | em | visual | ix | idx | indexsee)*
Description:
Corresponds to LaTeX's verbatim environment. In this context
XML's <![CDATA[...]]> is sometimes useful. Please note that –
in contrast to LaTeX – some formatting elements are allowed. So you
may print things in bold face, for example.
At least for LaTeX output you can activate syntax highlighting via
the class attribute:
<verbatim class="C++">
int main() {
cout << "Hello, world!\n";
return 0;
}
</verbatim>
The class attribute can take all values that are understood by
the listings package of LaTeX.