9

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.

15

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
| 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 10 Years Wizard Apr 8 '13 at 13:44
  • @ShaWizDowArd That page is just awesome. – Francisco Presencia Apr 8 '13 at 13:59
  • 1
    Cheers @Frank feel free to use it for your own tests. :) – Shadow 10 Years Wizard Apr 8 '13 at 14:07
6

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.

| improve this answer | |

You must log in to answer this question.

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