I am writing some document which contains Cg (C for Graphics) code in the document. I want to show the code in a neat highlighted mode. Any easy method to suggest? I tried the listings package but it doesn't support Cg language.
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
|
OK, I found the solution to my own question. I defined the Cg language using the following code:
Some notes: Then I used the following code to make some customization:
Finally, including my code in the document:
Don't forget to include the listings package:
Hope that helps! |
|||||
|