|
If a parser is available for the programming language of the edited code, this library will handle syntax highlighting and indentation.
Usage:
To use CodeMirror in a document, a script tag to load codemirror.js must be added.
This adds two objects to the environment, CodeMirror and CodeMirrorConfig.
The first is the interface to the editor, the second can be used to configure it.
Here are some key features of "CodeMirror":
Supported languages:
· C, C++, C#, Java, and similar
· Clojure
· CoffeeScript
· CSS
· diff
· ECL
· Erlang
· Go
· Groovy
· Haskell
· HaXe
· HTML embedded scripts
· HTML mixed-mode
· JavaScript
· Jinja2
· LESS
· Lua
· Markdown (Github-flavour)
· MySQL
· NTriples
· OCaml
· Pascal
· Perl
· PHP
· Pig Latin
· PL/SQL
· Properties files
· Python
· R
· RPM spec and changelog
· reStructuredText
· Ruby
· Rust
· Scala
· Scheme
· Shell
· Smalltalk
· Smarty
· SPARQL
· sTeX, LaTeX
· Tiddlywiki
· Tiki wiki
· VB.NET
· VBScript
· Velocity
· Verilog
· XML/HTML (alternative XML)
· XQuery
· YAML
Supported browsers:
· Firefox 1.5 or higher
· Internet Explorer 6 or higher
· Safari 3 or higher
· Opera 9.52 or higher
· Chrome
Requirements:
· JavaScript enabled on client side
What's New in This Release: [ read full changelog ]
· Emergency fix for a bug where an editor with line wrapping on IE will break when there is no scrollbar.
Via: CodeMirror 2.32 / 1.0
0 Comment:
Post a Comment