What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 131 Stack Exchange communities.

I tried to add a comment that included this text:

https://username@password:www.mysite.com/mypath/

But it showed up like this:

username@password:www.mysite.com/mypath/

How can I prevent auto-hyperlinking in a comment?

The magic: (view edit (not source))

https://‎username@password:example.com/mypath/
share|improve this question
    
Like this: https://‎username@password:www.mysite.com/mypath/ ? –  random Oct 5 '09 at 13:00
    
Yes. Please post whatever you did as an answer. –  Jeremy Stein Oct 5 '09 at 13:05
    
@Stein Go into edit mode for your question and check out what's been added. –  random Oct 5 '09 at 13:08
    
like this? https://username@password:www.mysite.com/mypath/ -- just put it in a code block delimited by ` –  Jeff Atwood Nov 4 '09 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 May 14 '12 at 5:24

3 Answers 3

up vote 4 down vote accepted

Simply use the code `` delimiters

share|improve this answer
    
Thanks, but that must be new. It hadn't worked before when I tried it here: stackoverflow.com/questions/1508391/… (I had to add the space to get it to work.) –  Jeremy Stein Nov 12 '09 at 15:09

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.)

share|improve this answer
    
The better yet solution. –  random Oct 6 '09 at 13:21

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.

https://‎username@password:example.com/mypath/

Which kind of looks like this:

https://<hidden unicode here>username@password:example.com/mypath/
share|improve this answer
    
Ok, trying that: http<b>:</b>//this.is@test.com –  Jeremy Stein Oct 5 '09 at 13:04
    
As you can see, that didn't work. –  Jeremy Stein Oct 5 '09 at 13:04
    
Trying the edited answer: https://‎username@password:example.com/mypath/ –  Jeremy Stein Oct 5 '09 at 13:09
2  
So, besides copying your answer, how does one create a hidden character? –  Jeremy Stein Oct 5 '09 at 13:09
    
Thanks random, I misread that we were talking about comments. –  perbert Oct 5 '09 at 13:10
5  
Take the surnames of your two creators and reverse them. Then chroma map one of the other characters and you've now created Noob Saibot. Or just use this: fileformat.info/info/unicode/char/200e/index.htm –  random Oct 5 '09 at 13:24

You must log in to answer this question.

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