'Tis known by many names
- code span
- inline code span
- inline code
Code blocks is formed when you indent a line by 4 spaces; inline code span is formed by enclosing text in a pair of backticks.
As documented in Help Center → Editing Help → Code Spans section:
If your code itself contains backticks, you may have to use multiple backticks as delimiters:
This is useful in some occasion where the inline code contains literal backticks (Perl and shell comes to mind, although I'm sure there are more).
With the regular single backticks, this markdown
`@files = `ls secret`;`
would render as
@files =
ls secret;
which is totally ugly (I just puked a little in my mouth).
With multiple backticks, i.e.
``@files = `ls secret`;``
or
```@files = `ls secret`;```
you get
@files = `ls secret`;
which is totally hot and correct.
When your code doesn't contain backticks, having single, double, or triple backticks makes no difference.
This is with three: `.
This is with one: `.