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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: A big challenge for colored text !
you can use the Option language=C++. The manual will give you more information.
regards
Marco