

CODEBLOCKS INFOARENA CODE
The blank line between and the indented code block is required.
CODEBLOCKS INFOARENA FULL
See the full specification and list of languages hints. This goes for fenced code blocks elsewhere as well:

You can also specify the syntax for all codeblocks in your post with the language-all hint: Īlternatively, if you use fenced code blocks, you can specify the language right after the first fence: ```lang-or-tag-here
CODEBLOCKS INFOARENA MANUAL
Highlight.js is used to add colour to the code, but only if the language can be uniquely determined given the tags of the question, or if manual hints have been provided.įor any code block, you can use these HTML comments to specify the language: If you do this, the code block only needs to be indented with the normal four spaces: - First bullet If you want a block of code to follow a list but not be nested under the final list item, you can use an HTML comment as a "breakpoint". If your code appears inside a list, you must indent an additional four spaces for each level of nesting. You can also use fenced code blocks within quotes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Or, put the blockquote character (and its following space) at the beginning of every blank line, including the one immediately before the code. > Lorem ipsum dolor sit amet, consectetur adipiscing elit. To include code within a blockquote, make sure to include the space after the > as well as the four spaces before the code. (click here to find the button in the Ask Question Wizard) When rendering, tabs are replaced with spaces. (Code highlighting is disabled by default on meta sites.)Ĭode copy/pasted from an IDE is often already tabbed. A lang-none language hint (see below) prevents syntax highlighting and keeps HTML tags. But in blocks with Syntax highlighting (see below), all HTML tags are stripped out.
For inline code (that does not hold newlines), any of the following will work:
