|
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
· z80
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 mode: Z80 assembly.
· New theme: Twilight.
· Add command-line compression helper.
· Make scrollIntoView public.
· Add defaultTextHeight method.
· Various extensions to the vim keymap.
· Make PHP mode build on mixed HTML mode.
· Add comment-continuing add-on.
Via: CodeMirror 2.36 / 1.0 / 3.0 rc2
0 Comment:
Post a Comment