This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes add tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "add tags" Watch "add tags" New topic

add tags

Hui Zhao
Ranch Hand

Joined: Jul 09, 2007
Posts: 116
I am parsing an HTML file and prepare to modify it.
I want display every line in different color.
It looks like to add a tag for each line, but I am not sure.

How to do it?

marc weber

Joined: Aug 31, 2004
Posts: 11343

Yes, you will probably want to use a span tag.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Have you checked out Aspose?
subject: add tags
It's not a secret anymore!