APL Wiki:Formatting: Difference between revisions

Jump to navigation Jump to search
576 bytes added ,  20:59, 8 February 2021
→‎Inserting code: Section on non-highlighted code
m (→‎Code blocks: Add tagging section header for reference)
(→‎Inserting code: Section on non-highlighted code)
Line 160: Line 160:
</source>
</source>
}}</blockquote>
}}</blockquote>
=== Unsupported languages ===
If your code is in a language the highlighter doesn't support, then there are two ways to present code without highlighting it. Don't use a <source lang=text inline><source></source> tag with no <code>lang</code> attribute as this puts the page in the "Pages with syntax highlighting errors" category, which is visible at the bottom of the page.
* Use <source lang=text inline><code></source> tags for inline code and <source lang=text inline><pre></source> tags for blocks, avoiding <code><source></code> entirely
* Use <code>lang=text</code>.


=== Mathematical notation ===
=== Mathematical notation ===

Navigation menu