This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes styledoc to html conversion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "styledoc to html conversion" Watch "styledoc to html conversion" New topic

styledoc to html conversion


Joined: Aug 07, 2001
Posts: 1
i have made one application which reads a styled document and converts it in to html tags. my problem is when using syyleeditorkit.boldaction to make text bold it takes whole line as a bold when converted to html . so my final html format shows whole line bold not the selected bold portion.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

hita -

Please read the official JavaRanch naming policy and re-register. Your user name needs to consist of a first name, a space, and a last name. First and last names have to be at least one character.

I'm not sure how much we can help you out with your problem without some code... it sounds like you are writing out the HTML bold tags at the wrong time, or in the wrong location in your output string...

Perhaps you could change your program to output whatever portion of the line it has read in as soon as it hits a bold portion, then read the bold portion, output it with bold tags surrounding it, and then continue to read...


Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: styledoc to html conversion
jQuery in Action, 3rd edition