I am writing a set of tutorial documents on some command-line based tools. This tutorials need to show a "screen session". Something along the lines of:
$ git status
# on branch "master"
I want to be able to:
- mark the shell prompt with a particular color (I always use the initial $ to indicate I'm on the prompt)
- Identify the command output with a different color
- Identify keywords in the shell commands
I was looking at the listings
package and it seems to be on the right path, but I couldn't find a way to produce that kind of output. I saw the documentation on how to produce a different "language" for the listings package, but I couldn't get myself around that, since I couldn't find much documentation.
Is there a public implementation of such "language" specification? If not, can you give me some tips on how to define it?