Download the PHP package uran1980/yii2-code-prettify without Composer
On this page you can find all versions of the php package uran1980/yii2-code-prettify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download uran1980/yii2-code-prettify
More information about uran1980/yii2-code-prettify
Files in uran1980/yii2-code-prettify
Download uran1980/yii2-code-prettify
More information about uran1980/yii2-code-prettify
Files in uran1980/yii2-code-prettify
Vendor uran1980
Package yii2-code-prettify
Short Description Yii2 Code syntax highlighter based on Google-Code-Prettify library.
License MIT
Homepage https://github.com/uran1980/yii2-code-prettify
Package yii2-code-prettify
Short Description Yii2 Code syntax highlighter based on Google-Code-Prettify library.
License MIT
Homepage https://github.com/uran1980/yii2-code-prettify
Please rate this library. Is it a good library?
Informations about the package yii2-code-prettify
Yii2 Code Prettify
Code syntax highlighting based on Google-Code-Prettify.
Installation
Composer
The preferred way to install this extension is through Composer.
Either run
or add
to the require section of your
Usage
To use this component add dependency to you project asset bundle. For example in file add to dependency:
That's it. In the View add source code blocks like this:
<pre class="prettyprint">
<script type="text/javascript">
// Say hello world until the user starts questioning
// the meaningfulness of their existence.
function helloWorld(world) {
for (var i = 42; --i >= 0;) {
alert('Hello ' + String(world));
}
}
</script>
<style>
p { color: pink }
b { color: blue }
u { color: "umber" }
</style>
</pre>
## Author
[Ivan Yakovlev](https://github.com/uran1980/), e-mail: [[email protected]](mailto:[email protected])
All versions of yii2-code-prettify with dependencies
PHP Build Version
Package Version
The package uran1980/yii2-code-prettify contains the following files
Loading the files please wait ....