Skip to content

Code, pre & math

Literal text — <nowiki>

Wrap anything in <nowiki>…</nowiki> to show it exactly as typed, with no wikitext interpretation:

<nowiki>'''not bold''' and [[not a link]]</nowiki>

Preformatted — <pre> and leading spaces

<pre>…</pre> renders a preformatted block — monospace, with whitespace preserved. You can also make a preformatted block simply by starting lines with a space.

Inline code — <code>

<code>…</code> for inline snippets, e.g. const x = 1.

Highlighted code — <syntaxhighlight> / <source>

<syntaxhighlight lang="js">
const greeting = "hello"
</syntaxhighlight>

Marks a code block with a language and renders it as a styled code block.

Math — <math>

<math>…</math> marks a TeX expression, e.g. <math>E = mc^2</math>.

Math is a placeholder in v0.1

<math> stores the expression but does not yet typeset it as a rendered equation.

HonoWiki Engine guide