Text Formatting ⇒ A big challenge for colored text !
A big challenge for colored text !
I'm currently writing a report on a programing project.
I used the following expression to include my scripts in C++ and to add line numbers on the left of my script:
\scriptsize
\listinginput[5]{1}{nameofthescript}
\normalsize
But a script, just in black, is a little bit boring to read.
Do you know if there is a method to automatically color the script according to a script coloration standard (like the programing softwares do) in C++ ?
Thank you very much for your help.
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: A big challenge for colored text !
you can use the Option language=C++. The manual will give you more information.
regards
Marco
