Jump to content

Syntax highlighting using Mediawiki formatting: Difference between revisions

m
replaced task sub-headings
m (→‎{{header|Phix}}: inlined the command_line() call)
m (replaced task sub-headings)
Line 1:
{{draft task}}
 
===;Introduction===:
 
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 (&lt;) to &amp;lt;
* greater-than (&gt;) to &amp;gt;
<br>
If your language doesn't have keywords/reserved words or comments, use your judgement on what to highlight in bold or italic : )
 
===;Presenting your source===:
 
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.
 
===;See also===:
 
[https://www.mediawiki.org/wiki/Help:Formatting https://www.mediawiki.org/wiki/Help:Formatting]
7,820

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.