This little beautifier will reformat and reindent bookmarklets, ugly JavaScript, unpack scripts packed by Dean Edward’s popular packer, as well as deobfuscate scripts processed by javascriptobfuscator.com. Extension for Yii2.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist brunohenriquebh/yii2-js-beautify "*"
or add
"brunohenriquebh/yii2-js-beautify": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
<?php
use leandrogehlen\codemirror\CodeMirror;
<?= $form->field($file, 'description')->widget(CodeMirror::className(), [
'pluginOptions' => [
'mode' => 'application/x-httpd-php',
'theme' => 'solarized dark',
...
]
]);
?>