Prism

The Prism tag is a syntax highligher based on PrismJS.

It produces code blocks like below.

<div class="example">...</div>

Example

<Prism lang=html>
<div class="example">...</div>
</Prism>

Note that the immediate new line after the open tag is ignored.

The code inside must not be escaped - for example, no need to replace < with &gt;.

Indents are literally passed to the code block.

Language

The lang property defines the language of the code.

Currently supported are:

  • html
  • js, jsx, ts, tsx
  • css, scss
  • php
  • json, bash, shell