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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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