I have post a question several weeks ago: Print programs with its proper syntax, and I choose to use tabbing package at the moment.
Now I really need to keep the tabbing and print a line number before each line. It will be great if this line number is automatically generated. Does anyone know how to do it?
I guess one fundamental approach is to define my own highlighting and tabbing rules based on the syntax of my language. (I have seen an example somewhere, but I could not find it anymore...) Could anyone help?
\documentclassand the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill Nov 19 '11 at 15:54tabbingand now want automatic line number and syntax highlighting that other packages likealgorithmicxandlistingscan perform by default. Why do you "really need to keep [..]tabbing"? – Werner Nov 19 '11 at 15:57