alcea/yii2-prism-syntax-highlighter Prism Syntax Highlighter for Yii2

Latest Stable Version Total Downloads Latest Unstable Version License

This package is no longer maintained

YII2 Prism Syntax Highlighter

Prism is a lightweight, extensible syntax highlighter, built with modern web standards in mind. It’s used in thousands of websites, including some of those you visit daily.

How to install?

1. Use composer
composer require alcea/yii2-prism-syntax-highlighter "~1"
2. or, edit require section from composer.json
"alcea/yii2-prism-syntax-highlighter": "~1"
3. or, clone from GitHub
git clone

How to use?


use alcea\yii2PrismSyntaxHighlighter\PrismSyntaxHighlighter;
    'theme' => PrismSyntaxHighlighter::THEME_DEFAULT,
    'languages' => ['php', 'php-extras', 'css'],
    'plugins' => ['copy-to-clipboard']

$md = <<<MD_FILE
$(document).on('focusout', 'input[name="test"]', function(event) {
	// do ...

echo Markdown::process($md, 'gfm-comment');
PrismJs page
0 0
0 follower
Yii Version: 2.0
License: (not set)
Category: Others
Tags: prism
Developed by: necaz
Created on: Jan 20, 2019
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions