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

You must log in to answer this question.

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