Syntax highlighting using Mediawiki formatting: Difference between revisions
Syntax highlighting using Mediawiki formatting (view source)
Revision as of 01:59, 8 October 2023
, 8 months agoreplaced task sub-headings
m (→{{header|Phix}}: inlined the command_line() call) |
m (replaced task sub-headings) |
||
Line 1:
{{draft task}}
When formatting a page for display, Mediawiki allows the page to include bold and italic text by placing the bold/italic text within paired repeated-single quote characters - 3 single quotes for bold and 2 for italic, 5 for bold italic.<br>
Line 21:
* less-than (<) to &lt;
* greater-than (>) to &gt;
If your language doesn't have keywords/reserved words or comments, use your judgement on what to highlight in bold or italic : )
Instead of showing your source within syntaxhighlight tags and having a separate output block, just show the source that would be output from your program when given its own source to process.<br>
I.e., don't use syntaxhighlight tags.
[https://www.mediawiki.org/wiki/Help:Formatting https://www.mediawiki.org/wiki/Help:Formatting]
|