Text FormattingColoration Java Code

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
radius
Posts: 2
Joined: Sun Jan 11, 2009 1:51 pm

Coloration Java Code

Post by radius »

Hello,

I'm trying to dye my java code in LaTeX and i'm really exhausted. I found this http://www.latex-community.org/viewtopi ... 97&p=14006. It's sollution to highlight background.

Is there any sollution to put colors on main words (like for, while...)?

Regards

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Coloration Java Code

Post by localghost »

Take a look at the listings manual. It explains the formatting of code in a certain programming language and highlighting of keywords.


Best regards and welcome to the board
Thorsten¹
radius
Posts: 2
Joined: Sun Jan 11, 2009 1:51 pm

Re: Coloration Java Code

Post by radius »

Thank you! It was the most speedest answer that I've got. :o
Post Reply