Integrate codemirror with Zope.
Project description
Introduction
CodeMirror is a JavaScript library that provides features commonly found in IDEs (like syntax highlighting and smart indent) to browser-based editors. This product monkey patches Zope PythonScript ZMI edit form to use CodeMirror. It was tested in Chrome, Firefox and IE 9.
Aim
This product exists as a proposal of a feature addition to Zope itself: the author thinks textareas are too uncomfortable for developers to edit their code.
Extending
Including the file ++resource++codemirror/convertTextAreas.js all textareas with class codemirror-python will be converted. If an attribute called onCodeMirrorLoad is found on the textarea DOM element, it will be called with the codeMirror object as parameter.
Contributors
Silvio Tomatis, Original Author
Changelog
0.1dev (unreleased)
Inital implementation: monkey patch Zope to use codemirror in the ZMI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file collective.codemirror-0.1.zip
.
File metadata
- Download URL: collective.codemirror-0.1.zip
- Upload date:
- Size: 52.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b49688ec6ab3fea392fe62d2301748293f534c742d13aeda3930b5ee6ab26f9d |
|
MD5 | 4a476194ea9f439d0a61ef7a5d9f8297 |
|
BLAKE2b-256 | 42c306da60f3363092b12a5fe1c7cdd6ab91cb8750752b1c7077a8987cefce9d |