Text FormattingA big challenge for colored text !

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
fabien314
Posts: 1
Joined: Sat Mar 21, 2009 5:13 pm

A big challenge for colored text !

Post by fabien314 »

Hello,

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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
marco_d
Posts: 57
Joined: Tue Jan 20, 2009 7:49 pm

Re: A big challenge for colored text !

Post by marco_d »

Hello,

you can use the Option language=C++. The manual will give you more information.

regards
Marco
i am German. I can not use difficult words. :-)
Post Reply