2017 © Pedro Peláez
 

yii2-extension yii2-prism-syntax-highlighter

Prism Syntax Highlighter for Yii2

image

alcea/yii2-prism-syntax-highlighter

Prism Syntax Highlighter for Yii2

  • Monday, December 11, 2017
  • by nicualcea
  • Repository
  • 1 Watchers
  • 2 Stars
  • 159 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 20 % Grown

The README.md

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

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., (*2)

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 https://github.com/alceanicu/yii2-prism-syntax-highlighter

How to use?

<?php

use alcea\yii2PrismSyntaxHighlighter\PrismSyntaxHighlighter;

PrismSyntaxHighlighter::widget([
    'theme' => PrismSyntaxHighlighter::THEME_DEFAULT,
    'languages' => ['php', 'php-extras', 'css'],
    'plugins' => ['copy-to-clipboard']
]);

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

echo Markdown::process($md, 'gfm-comment');

PrismJs page http://prismjs.com/download.html

The Versions

11/12 2017

dev-master

9999999-dev

Prism Syntax Highlighter for Yii2

  Sources   Download

MIT License

The Requires

 

by Niku Alcea

php yii2 syntaxhighlighter prism

30/12 2016

v1.1

1.1.0.0

Prism Syntax Highlighter for Yii2

  Sources   Download

MIT License

The Requires

 

by Niku Alcea

php yii2 syntaxhighlighter prism

30/12 2016

v1.0

1.0.0.0

Prism Syntax Highlighter for Yii2

  Sources   Download

MIT License

The Requires

 

by Niku Alcea

php yii2 syntaxhighlighter prism