Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 153 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

I'm trying to answer a question, and for that I need to mark 4 different mock (fake) urls and what they'd have. When I type this, a link is automatically created, and I would like to avoid this behaviour since this page doesn't exist. I want to create a link only if I do [] () without space in the middle. Is this even possible? Example of what I mean:

http://www.example.com/index.php

Code for that page

That shouldn't have a link automatically created since it doesn't exist, but inserting it in code is not feasible (because next line is code for that page and there should be a separation). Block quotes didn't work either. I'm asking if this is possible without breaking the url itself, only the hyperlink.

share|improve this question
up vote 15 down vote accepted

You can put the URL inside backticks, like this:

`http://www.example.com/index.php`

This results in a valid URL without a generated hyperlink:

http://www.example.com/index.php

Code for that page
share|improve this answer
1  
True, you can also have it all in code block and separate the lines using HTML comment, see the source of this answer for an example. – Shadow Wizard Apr 8 '13 at 13:44
    
@ShaWizDowArd That page is just awesome. – Francisco Presencia Apr 8 '13 at 13:59
    
That worked, thanks. – Francisco Presencia Apr 8 '13 at 14:00
1  
Cheers @Frank feel free to use it for your own tests. :) – Shadow Wizard Apr 8 '13 at 14:07

From this excellent answer to a very similar question:

You can put the URL escape a / with a \, like this:

http:\//www.example.com/index.php

This results in a valid URL without a generated hyperlink:

http://www.example.com/index.php

Code for that page

Note that the live preview will show the \, but the actual rendering won't.

share|improve this answer

You must log in to answer this question.

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