Diaspora/Website
-
It’s also possible to display code inline, by marking the start and end of the snippet with a single backtick.
It’s also possible to display code inline, by marking the start and end of the snippet with a single backtick.
-
This is a line of normal text.
This is a line of normal text.
-
this will be a code block
this will be a code block
-
Then some more more normal text.
Then some more more normal text.
-
More code in this block,
More code in this block,
-
and a line of code indented by two spaces
and a line of code indented by two spaces
-
To create a horizontal line, use at least three - - -, _ _ _ or * * * on a separate line. Any number above three will do the same thing and spaces between the characters do not matter.
To create a horizontal line, use at least three - - -, _ _ _ or * * * on a separate line. Any number above three will do the same thing and spaces between the characters do not matter.
-
A line of text above the horizontal rule.
A line of text above the horizontal rule.
-
The start of the next section of text.
The start of the next section of text.
-
Place either asterisks or underscores either side of a word or words to make them italic, bold or bold italic.
Place either asterisks or underscores either side of a word or words to make them italic, bold or bold italic.
-
<strong><em>Bold italics</em></strong>: ***word*** or ___word___
<strong><em>
Bold italics</em></strong>
: ***word*** or ___word___ -
You must of course match the number of asterisks/underscores either side of words for the formatting to work. Typing “I want to display this as a **bold* word” won’t display the word in bold.
You must of course match the number of asterisks/underscores either side of words for the formatting to work. Typing “I want to display this as a **bold* word” won’t display the word in bold.
-
Inline links
Inline links
-
To create an %{inline_link}, use the following code:
To create an %{inline_link}, use the following code:
-
[displayed text here](http://link.address.here "alt text")
[displayed text here](http://link.address.here "alt text")
-
The “alt text” is optional, and is displayed as a tool-tip when the cursor is moved over the link.
The “alt text” is optional, and is displayed as a tool-tip when the cursor is moved over the link.
-
inline link
inline link
-
To add external images to your post, comment or private message, use the same code as for a link, but with an exclamation point at the front:
To add external images to your post, comment or private message, use the same code as for a link, but with an exclamation point at the front:
-
For this to work, you must provide a direct link to a valid image file, <em>not</em> to a web page with an image or images on it.
For this to work, you must provide a direct link to a valid image file,
<em>
not</em>
to a web page with an image or images on it. -
The alternative text in the square brackets is displayed if the image cannot be loaded, and the optional title is displayed as a tool-tip when the cursor is moved over the image; both are useful but not essential.
The alternative text in the square brackets is displayed if the image cannot be loaded, and the optional title is displayed as a tool-tip when the cursor is moved over the image; both are useful but not essential.