| |||||
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
· D
· diff
· ECL
· Erlang
· Go
· Groovy
· Haskell
· HaXe
· HTML embedded scripts
· HTML mixed-mode
· INI
· JavaScript
· Jinja2
· LESS
· LiveScript
· Lua
· Markdown (Github-flavour)
· mIRC
· NoTex (rST authoring)
· NTriples
· OCaml
· Pascal
· Perl
· PHP
· Pig Latin
· Properties files
· Python
· R
· RPM spec and changelog
· reStructuredText
· Ruby
· Rust
· SASS (SCSS)
· Scala
· Scheme
· Shell
· Smalltalk
· Smarty
· SPARQL
· SQL (many dialects)
· 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 ]
· Removed code: collapserange, formatting, and simple-hint addons. plsql and mysql modes (use sql mode).
· Moved code: the range-finding functions for folding now have their own files.
· Changed interface: the continuecomment addon now exposes an option, rather than a command.
· New modes: SCSS, Tcl, LiveScript, and mIRC.
· New addons: placeholder, HTML completion.
· New methods: hasFocus, defaultCharWidth.
· New events: beforeCursorEnter, renderLine.
· Many improvements to the show-hint completion dialog addon.
· Tweak behavior of by-word cursor motion.

Via: CodeMirror 3.11 / 2.37 / 1.0






0 Comment:
Post a Comment