GeneralC++ code not highlighted

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
snif123
Posts: 11
Joined: Sat Apr 16, 2011 7:19 pm

C++ code not highlighted

Post by snif123 »

Hi,
I am including C++ code in my report, but the it's not highlighted as how it is in the program, like keywords in blue or red, am using the listings package with language set to C++. Any idea how to do this?

SOLVED!
Last edited by snif123 on Sat Apr 30, 2011 12:50 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

snif123
Posts: 11
Joined: Sat Apr 16, 2011 7:19 pm

Re: C++ code not highlighted

Post by snif123 »

Solved!
read documentation for lstset and all the parameters can be user defined.
Enjoy
Post Reply