Django-EditArea is a widget for Django. It adds syntax highlighting to TextField fields on the admin side.
Features
Django-EditArea is based on EditArea, so it has a whole bunch of features:
- Real-time syntax highlighting
- Search and replace (with regular expressions too!)
- Auto-indenting
- Line numbering
- Full screen mode
- Works alongside popular javascript libraries
- Can be used as a widget in forms
- Very easy to add to a new site or an existing one – no complicated setup
Screenshot
Click to enlarge:
Usage
Django-EditArea is designed to be easy to use. Adding it to an existing site is as easy as replacing all TextField fields with EditAreaFields in your models.py file. Here is a simple models.py file using Django-EditArea:
from django.db import models
import editarea
# Create your models here.
class Page(models.Model):
content = editarea.EditAreaField()
Download
Click to download.Developers
Django-EditArea's GitHub pageThanks To
The original EditArea copyright (c) Christophe Dolivet @ cdolivet.com
