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.
OK, I found the solution to my own question. I defined the Cg language using the following code:
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!