General ⇒ C++ code not highlighted
C++ code not highlighted
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!
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
Re: C++ code not highlighted
read documentation for lstset and all the parameters can be user defined.
Enjoy