I have a large block of text I want to pre-format (e.g. in the source code), and print when needed. In other words, something like
The poem is by Joyce Kilmer.
When the user enters the -h option on the command line I want to print something pre-formatted like the above. What's the best way to do that? I suspect it's related to multi-language support, but as I only speak english I won't be translating it.
I'm asking if there is a better way, maybe a Java library that handles this sort of thing.
Is the text known in advance (at compile time)? Is the formatting rules known in advance (at compile time)?
=Jim Venolia wrote:I want to display a block of text in english that is formatted a certain way.
You failed to explain clearly what do you want to do. To handle what sort of thing?
Jim Venolia wrote:I'm asking if there is a better way, maybe a Java library that handles this sort of thing.
Jeanne Boyarsky wrote:Right. I figure you don't want Carey posted so I was trying to draw out the problem you are trying to solve.
Right. I figured that Jim didn't want what I posted either but was trying to make a point that this was as good as he was going to get without more info.