aspose file tools*
The moose likes Ranch Office and the fly likes How not to convert Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "How not to convert "c:out" into smilies ?" Watch "How not to convert "c:out" into smilies ?" New topic
Author

How not to convert "c:out" into smilies ?

Ken Loh
Ranch Hand

Joined: Feb 16, 2005
Posts: 190
Lines like "<c ut" will be inadvertently turned into smilies. The only way I know to keep the line intact is to disable smilies.>

Is there a way for me to keep both ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61001
    
  65

While I'd love to see smilies disabled by default (see other topic in this forum), you can prevent them, without disabling smilies, in code blocks by using the HTML entity for the colon character.

So instead of entering

<c:out>

you would enter

<c&#58;out>

Note that I entered this reply without disabling smilies.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61001
    
  65

You can use the same technique for entering otherwise forbidden phrases such as:

onclick

and the like.
Ken Loh
Ranch Hand

Joined: Feb 16, 2005
Posts: 190
Thanks for the great tips! It would definitely able to get rid of many people's woes as far as smileys are concerned. Java ranch administrators, care to put Bileault's tips at somewhere really prominent ?

Originally posted by Bear Bibeault:
While I'd love to see smilies disabled by default (see other topic in this forum), you can prevent them, without disabling smilies, in code blocks by using the HTML entity for the colon character.

So instead of entering

<c:out>

you would enter

<c&#58;out>

Note that I entered this reply without disabling smilies.
Ken Loh
Ranch Hand

Joined: Feb 16, 2005
Posts: 190
Originally posted by Ken Loh:
Thanks for the great tips! It would definitely able to get rid of many people's woes as far as smileys are concerned. Java ranch administrators, care to put Bibeault's tips at somewhere really prominent for the sake of all your users ?

 
wood burning stoves
 
subject: How not to convert "c:out" into smilies ?