-3

does anybody know how to insert code into lyx? just like what is available here? I want to have a code like this .

Amro
  • 123,847
  • 25
  • 243
  • 454
Computer_guy
  • 807
  • 2
  • 11
  • 19
  • Can you do a bit more explaining what you already tried, and what you want to use it for. – epsilonhalbe Jun 17 '12 at 19:01
  • I just tried to change the font. I was wondering if there are template styles like "toggle noun" and "toggle emph" – Computer_guy Jun 18 '12 at 11:57
  • It's a bit annoying when a question that precisely matches what I am looking for is marked off topic. Lyx is a tool that is used by some programmers when preparing documentation for projects. Unless the question itself is flawed, it's on-topic. – Ross Judson Jul 02 '12 at 14:58
  • @Ross, I don't know why they closed it! The easiest answer is that it is not supported like "noun" and "emph". you need to change the font manually. – Computer_guy Jul 03 '12 at 14:56

2 Answers2

0

Don't rally know about LyX, but in LaTeX there are the lstlisting (from the listings package) and the verbatim environment.

DZittersteyn
  • 628
  • 3
  • 8
0

If you search for listing on the lyx wiki homepage - you'll find this - maybe it is of help to you.

epsilonhalbe
  • 15,637
  • 5
  • 46
  • 74