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?