django-codemirror icondjango-codemirror 0.1 RC1

Django's textarea like widget for using CodeMirror on textarea
django-codemirror is a Django app, a widget for using CodeMirror on Django's Textarea.

Install:

        sudo pip install django-codemirror

or

        git clone git://github.com/alisue/django-codemirror.git
        sudo pip install django-codemirror/


or download repository and copy it to somewhere in PYTHON_PATH

How to Use:


1.      First, you need to specified `CODEMIRROR_PATH` on `settings.py`
`CODEMIRROR_PATH` is the URI of CodeMirror directory like `CODEMIRROR_PATH = r"javascript/codemirror"
2.      Use `codemirror.widgets.CodeMirrorTextarea` widgets for target Textarea like below

                from django import forms
                from codemirror.widgets import CodeMirrorTextarea

                codemirror = CodeMirrorTextarea(
                        parserfile=['parsexml.js'],
                        stylesheet=[r'javascript/codemirror/css/xmlcolor.css'],
                )
                document = forms.TextField(widget=codemirror)

last updated on:
March 18th, 2011, 14:14 GMT
price:
FREE!
developed by:
Alisue
license type:
BSD License 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT