## Inclusion of program listing

What is the best way to include program listing, where I get decent typesetting?

I have used verbatim so far, but the result is not very nice -- e.g. tabs become \qquad or something.

I seem to recall that George suggested the latex package "listings" a while ago. But I don't recall the description of how to activate/use it. Is this documented somewhere? And will it also work for SWP 6?

Also, I'm using a modeling language named Modelica, and I don't think "listings" has support for that one. Is there a way I can add definitions of a new language (such as Modelica)?

-B