brunohenriquebh/yii2-js-beautify

Js-beautify extension for Yii2

v1.2.0 2015-09-08 19:07 UTC

This package is not auto-updated.

Last update: 2025-03-10 08:44:41 UTC


README

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.

Yii2

Installation

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.

Usage

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',
        ...
    ]
]);

?>