Okay, I'm a real LaTeX noob. But I will have to use it. And a friend who knows it (as a student who writes his diploma with it) said, there is a Listings package to put source code into a document. Well, after I saw that listings package, I realized that's not really what I want. So I'm curious if it's possible to develop something like that listings package. I have no idea what sort of thing such a "package" actually is. Right now I'd bet it's some kind of program.
So: How could I write a module or package (or whatever the LaTeX folks call that) to extend LaTeX with custom functionality? What programming language must I use there? And are there any helpful tutorials online?