File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ranch Office and the fly likes How to post html tags in code examples if HTML is ON for the topic. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "How to post html tags in code examples if HTML is ON for the topic." Watch "How to post html tags in code examples if HTML is ON for the topic." New topic
Author

How to post html tags in code examples if HTML is ON for the topic.

Hal Watson
Greenhorn

Joined: Jul 06, 2001
Posts: 5
How do I post snippets of code which include HTML tags when I see that "HTML is ON" for my topic? My code snippet was interpreted literally rather than just displaying for others to see.
I tried enclosing my code with CODE tags as advised in the FAQ but it didn't solve my problem, just formatted my code nicely between two grey bars.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9047
    
  10
You can put a space between the < and the tag (like < html>)
or
You can use < for < and > for >


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Heh. The second option is a toughie - the system keeps reinterpreting things for you.
I believe what Marilyn wanted to write, before UBB changed it, was: use &lt; for <, and &gt; for >.


"I'm not back." - Bill Harding, Twister
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9047
    
  10
Yep. That's what I wrote.
Hal Watson
Greenhorn

Joined: Jul 06, 2001
Posts: 5
Thanks, that is helpful. Maybe I can also use the < PLAINTEXT> < /PLAINTEXT> tags ? I just thought of that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to post html tags in code examples if HTML is ON for the topic.