|
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
· Common Lisp
· CSS
· diff
· ECL
· Erlang
· Go
· Groovy
· Haskell
· HaXe
· HTML embedded scripts
· HTML mixed-mode
· INI
· JavaScript
· Jinja2
· LESS
· Lua
· Markdown (Github-flavour)
· MySQL
· NoTex (rST authoring)
· 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
· TypeScript
· 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 ]
· New (sub) mode: TypeScript.
· Don't overwrite (insert key) when pasing.
· Fixed several bugs in markText/undo interaction.
· Better indentation of JavaScript code without semicolons.
· defineInitHook function.
· Full list of patches.
Via: CodeMirror 2.35 / 1.0 / 3.0 beta2
0 Comment:
Post a Comment