Display inline code and code blocks
word
or phrase
as code, enclose it in backticks (`).
""
, ''
, or no quotes.{}
, ""
, or ''
.title="Your title"
or a string on a single line.
highlight
with the line numbers or ranges you want to highlight.
focus
with line numbers or ranges.
lines
.
expandable
.
wrap
. This prevents horizontal scrolling and makes long lines easier to read.
// [!code ++]
: Mark a line as added (green highlight).// [!code --]
: Mark a line as removed (red highlight).// [!code ++:3]
: Mark the current line plus the next two lines as added.// [!code --:5]
: Mark the current line plus the next four lines as removed.//
for JavaScript or #
for Python).