I tried to add a comment that included this text:


But it showed up like this:


How can I prevent auto-hyperlinking in a comment?

The magic: (view edit (not source))

  • Like this: https://‎username@password:www.mysite.com/mypath/ ?
    – random
    Oct 5, 2009 at 13:00
  • Yes. Please post whatever you did as an answer. Oct 5, 2009 at 13:05
  • @Stein Go into edit mode for your question and check out what's been added.
    – random
    Oct 5, 2009 at 13:08
  • like this? https://username@password:www.mysite.com/mypath/ -- just put it in a code block delimited by ` Nov 4, 2009 at 8:45
  • We detected an invalid link in your post, please correct it. (this message will be automatically removed when the link is fixed)
    – Community Bot
    May 14, 2012 at 5:24

3 Answers 3


Simply use the code `` delimiters


The examples above use U+200E Left-to-Right Mark as a zero-width joining character to break up a sequence that would be spotted as a link otherwise. This is a bit dodgy IMO; directionality characters have a specific use and this isn't it. Although U+200E isn't one of the directionality characters described by W3/Unicode as discouraged for use in markup, there is an argument for stripping them out, as the ‘discouraged’ characters definitely should be.

I suggest U+200D Zero-Width Joiner instead. (Although, in practice I tend to use U+200B Zero-Width Space, since my keyboard makes it easy to type.)


You're going to have to include some Unicode character that will be taken out by the parser and breaks the URL at the same time.


Which kind of looks like this:

https://<hidden unicode here>username@password:example.com/mypath/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .