Diaspora/Website
-
Code blocks
Code blocks
-
If you are a developer you may be interested in code blocks. To create a code block, start your text/code with four backticks ( ` ` ` ` ). To return to normal text, close the code block with another four.
If you are a developer you may be interested in code blocks. To create a code block, start your text/code with four backticks ( ` ` ` ` ). To return to normal text, close the code block with another four.
-
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
-
Horizontal line
Horizontal line
-
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.
-
Italics and bold
Italics and bold
-
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.
-
<em>Italics</em>: *word* or _word_
<em>
Italics</em>
: *word* or _word_ -
<strong>Bold</strong>: **word** or __word__
<strong>
Bold</strong>
: **word** or __word__ -
<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: