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.

2 Answers 2

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 
3
  • 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. Commented Apr 8, 2013 at 13:44
  • @ShaWizDowArd That page is just awesome. Commented Apr 8, 2013 at 13:59
  • 1
    Cheers @Frank feel free to use it for your own tests. :) Commented Apr 8, 2013 at 14:07
7

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.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.