Yii 1.1: editarea

syntax highlighting and line numbering for textareas
6 followers

Hey,

My first extension for YII.

Extension made to easy use EditArea script in YII

It's generating textarea field with line numbers, and syntax highlighting (css, php, html, etc.) - very useful in some cases, hope someone will use it.

Fully configurable, all options available in EditArea documentation.

Installation

Extract under /protected/extensions/

Requirements

Tested on Yii 1.1, but should also work on other versions.

Usage

$this->widget('application.extensions.editarea.EEditArea', array(
        'value'=>'your value',
        'htmlOptions'=>array(
                'name'=>'your name',
                'syntax'=>'php',
                'allow_toggle'=>'false'
                )
        )
);

Resources

Total 1 comment

#5401 report it
dckurushin at 2011/10/09 05:47pm
A little issue

Don't figured out why...

But in the original demo, text highlighted real time... In this plugin text is highlighted only after enter... or ctrl+v not sure why...

Leave a comment

Please to leave your comment.

Create extension