Invisible Person wrote:

Hello list,
I want to insert source code ( Java, Sql) into the document.
Can I insert it formatted (indent and/or colored) like in an IDE?
If you can live with some ERT, consider the listings package.
It lets you list source code files, it parses many programming
languages (including java). You can select how different
items (keywords, commands, separators, and so on) should
be highlighted, so you can have colors if you want that.

The colors won't be there on screen when you edit, but
they will appear in print as well as view->pdf.

Helge Hafting

Reply via email to