File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
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
I agree. Here's the link:
subject: add tags
It's not a secret anymore!