Skip to Content
Engine tagsCode, pre & math

Code, pre & math

Four tags show text literally — no wiki markup, no includes, no HTML runs inside them.

<code> and <pre>

Inline code and preformatted blocks, exactly like their HTML namesakes:

Run <code>npm start</code> to boot it. <pre> '''this''' [[stays]] {{literal}} </pre>

A line that starts with a space also becomes a <pre> block — the classic wiki shortcut.

<syntaxhighlight>

For source code, with a language label:

<syntaxhighlight lang="js"> const x = 1 < 2; </syntaxhighlight>

<source> is an accepted alias. The content renders as a monospace block with the language recorded in the markup.

No color yet: syntax highlighting isn’t implemented — today the block renders like <pre>. The language you write is preserved, so existing pages will light up when highlighting lands.

<math>

<math>E = mc^2</math>

Placeholder: math is not typeset yet — the expression is shown as plain text (and preserved in the markup for a future renderer). For now, prefer Unicode (E = mc²) where legibility matters.

<nowiki>

The general-purpose escape — see the markup overview. One reminder: <nowiki> cannot protect {{…}} includes; use &#123; entities for those.

HonoWiki (Wiki engine) guide · Content CC BY-SA 4.0