yii2cmf/yii2-prism-asset

Built with modern web standards in mind. It’s used in thousands of websites, including some of those you visit daily.

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:CSS

Type:yii2-extension

dev-master 2019-09-15 13:46 UTC

This package is auto-updated.

Last update: 2024-05-16 00:03:40 UTC


README

Built with modern web standards in mind. It’s used in thousands of websites, including some of those you visit daily.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yii2cmf/yii2-prism-asset "*"

or add

"yii2cmf/yii2-prism-asset": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \yii2cmf\prism\PrismAsset::register($this); ?>

The recommended way to mark up a code block (both for semantics and for Prism) is a pre element with a code element inside, like so:

<pre><code class="language-css">p { color: red }</code></pre>