• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ken Loh
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65122
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65122
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the same technique for entering otherwise forbidden phrases such as:

onclick

and the like.
 
Ken Loh
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic