Simple module based at Prism.js
1.1.1
Batflat 1.3.x
- Optimalize site init.
- Add support for Markup.
- Download this repository
- Unzip the downloaded files
- Move catalog with theme to the
/inc/modules
- Activate form modules admin panel
The module contains the full version of Prism, but supports only the following languages:
- CSS
- JavaScript
- Arduino
- AutoIt
- Bash
- C
- Cpp
- Csharp
- AspNet
- Lua
- Makefile
- Markdown
- Less
- Json
- Latex
- Java
- Ini
- Http
- Git
- PowerShell
- Python
- Sass
- Scss
- Sql
- TypeScript
- Yaml
- Php
- Batch
- VisualBasic
- Verilog
- Vhdl
- Markup
To format a block of code, place it between the {$prismjs.start.LN}
and {$prismjs.end}
tags, where LN stands for the language name in lowercase letters.
{$prismjs.start.css} p { color : red; } {$prismjs.end}
{$prismjs.start.javascript} alert('OK'); {$prismjs.end}
In the administration panel, select the PrismJs module from the main menu. Then select one of the available themes and confirm with the "Choose" button.