Hi there,
I'd like to put short source code snippets (from 1 to 10 lines max) into my text, in
typewriter font (I am writing a coding styleguide). I tried to just tweak the font
settings but was not happy with it because lyx/latex still treats it as normal text,
and creates margins at the beginning of a paragraph etc; I also could not find a way
to integrate tabs or spaces for source code indentation like this:
void foo()
{
// indented text goes here
}
I know from my early and long gone LaTeX days that there is a \verbatim{} command in
LaTeX - would that be a solution and if yes could I use that? Or is there any other
better suited solution to my problem?
I'm using LyX 1.3.2 for Windows and the "article (AMS)" document class
thx,
Uwe