In my docs, I occasionally use “garbage” urls as examples and don’t want them to be hyperlinks to nowhere. Is there any syntax to make these urls not hyperlinks?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are three ways to format such URLs so that they are not hyperlinks. The first is to treat sample URLs like other code samples and enclose them in backquotes, like this:
The second is to use the Sphinx
:samp:role, like this:The
:samp:role lets you have variable parts emphasized. So, for example, you could indicate a user-selected port number, like this:and the word port would appear emphasized and braces omitted.
The last option is to prepend the sample URL with a backslash, like this:
The URL will appear as ordinary text, without being a link or having any special formatting.