# HG changeset patch # User Wuzzy # Date 1531453686 -3600 # Node ID a48722ae24fabfef9294239e9e6331d8dc3720d3 # Parent 4883b31e9277d319fcfea5b1ff2887c01da1b321 WikiSyntax: about syntax highlighting diff -r 4883b31e9277 -r a48722ae24fa WikiSyntax.wiki --- a/WikiSyntax.wiki Fri Jul 13 04:42:32 2018 +0100 +++ b/WikiSyntax.wiki Fri Jul 13 04:48:06 2018 +0100 @@ -74,7 +74,7 @@ return fib(n-1) + fib(n-2) }}} -For more control over the syntax higlighting, the `<code>` tag allows you to specify a file extension: +The `<code>` tag allows you to specify a file extension (note: syntax highlighting is not implemented yet): {{{ <code language="xml"> @@ -82,7 +82,7 @@ </code> }}} -To disable highlighting entirely, use the `<pre>` tag. +The `<pre>` tag is like the code tag, but will never use syntax highlighting. == Headings == @@ -318,7 +318,7 @@ <tr><td>b</td><td>title dir lang</td></tr> <tr><td>br</td><td>title dir lang</td></tr> <tr><td>blockquote</td><td>title dir lang</td></tr> -<tr><td>code</td><td>title dir lang language `[1]`</td></tr> +<tr><td>code</td><td>title dir lang</td></tr> <tr><td>dd</td><td>title dir lang</td></tr> <tr><td>div</td><td>title dir lang</td></tr> <tr><td>dl</td><td>title dir lang</td></tr> @@ -354,8 +354,6 @@ <tr><td>var</td><td>title dir lang</td></tr> </tbody> </table> -`[1]` The language attribute of the code tag is the file extension of the language used in the code block. It is used as a hint for the syntax highlighter. - == Escaping HTML Tags == When you want to display html tags directly on your wiki page (as opposed to rendered), you will need to escape each HTML tag.