{} Codemirror

Source: Internet
Author: User

Codemirror

{} Codemirror
 
/* In-browser code editing made bearable */

Codemirror is a javascript component that provides a code editor in the browser. When a mode is available for the language you are coding in, it will color your code, and optionally help with indentation.

A rich programming API and a CSS theming System are available for customizing codemirror to fit your application, and extending it with new functionality.

Supported modes:
    • C, C ++, C #
    • Clojure
    • Coffeescript
    • Common LISP
    • CSS
    • D
    • Diff
    • ECL
    • Erlang
    • Go
    • Groovy
    • Haskell
    • Haxe
    • HTML mixed-mode
    • HTTP
    • Java
    • Javascript
    • Less
    • Lua
    • Markdown (GitHub-flavor)
    • Ntriples
    • Ocaml
    • Pascal
    • Perl
    • PHP
    • Properties files
    • Python
    • R
    • Restructuredtext
    • Ruby
    • Rust
    • Sass
    • Scala
    • Scheme
    • Shell
    • Smalltalk
    • Smarty
    • SQL (several dialects)
    • SPARQL
    • Stex, latex
    • VB. NET
    • VBScript
    • Velocity
    • XML/html
    • XQuery
    • Yaml
    • Z80
    • Full list...
Usage demos:
    • Autocompletion (XML)
    • Search/replace
    • Code folding
    • Line widgets (via jshint)
    • Split View
    • Mode Overlays
    • Mode Multiplexer
    • HTML editor with Preview
    • Auto-resizing Editor
    • Setting breakpoints
    • Highlighting the current line
    • Highlighting selection matches
    • Theming
    • Mixed font sizes
    • Stand-alone highlighting
    • Full-screen editing
    • Mode auto-changing
    • Visible tabs
    • Autoformatting of code
    • Emacs keybindings
    • Vim keybindings
    • Automatic xml tag closing
    • Lazy MODE LOADING
    • Document Tree Visualization
Real-world uses:
    • Jsbin.com (JS Playground)
    • Light table (experimental IDE)
    • Adobe brackets (code editor)
    • Mergely (Interactive diffing)
    • Google Apps script
    • GitHub's Android app
    • Eloquent JavaScript (book)
    • Zen coding (fast XML editing)
    • Paper. js (Graphics scripting)
    • Codev (Collaborative IDE)
    • Tributary (augmented editing)
    • Prose. io (GitHub Content Editor)
    • Wescheme (learning tool)
    • Webgl Playground
    • QL. io (http api query helper)
    • The file tree (collab editor)
    • Jshint (JS Linter)
    • Sqlfiddle (SQL Playground)
    • Try haxe (haxe Playground)
    • Cssdeck (CSS showcase)
    • Sketchpatch livecodelab
    • Notex (RST authoring)
    • More...
Getting the code

All of codemirror is released under a MIT-style license. to get it, you can download the latest release or the current development snapshot as ZIP files. to create a custom minified script file, you can use the compression API.

We use git for version control. The main repository can be fetched in this way:

 
Git clone http://marijnhaverbeke.nl/git/codemirror

Codemirror can also be found on GitHub at marijnh/codemirror. if you plan to hack on the Code and contribute patches, the best way to do it is to create a GitHub fork, and send pull requests.

Documentation

The manual is your first stop for learning how to use this library. It starts with a quick explanation of how to use the editor, and then describes the API in detail.

For those who want to learn more about the code, there is a series of posts on codemirror on my blog, and the old overview of the editor internals. the source code itself is, for the most part, also very readable.

Support and bug reports

Community discussion, questions, and informal bug reporting is done on the codemirror Google group. there is a separate group, codemirror-announce, which is lower-volume, and is only used for major announcements-new versions and such. these will be cross-posted to both groups, so you don't need to subscribe to both.

Though bug reports through e-mail are responded to, the preferred way to report bugs is to use the GitHub issue tracker. before reporting a bug, read these pointers. also, the issue tracker isBugs, Not requests for help.

When none of these seem fitting, you can simply e-mail the maintainer directly.

Supported browsers

The followingDesktopBrowsers are able to run codemirror:

    • Firefox 3 or higher
    • Chrome, any version
    • Safari 5.2 or higher
    • Opera 9 or higher (with some key-handling problems on OS X)
    • Internet Explorer 8 or higher in standards mode
      (NotQuirks mode. But Quasi-standards mode with a transitional doctype is also flaky.<! Doctype HTML>Is recommended .)
    • Internet Explorer 7 (standards mode) is usable, but buggy. It has a z-index bug that prevents codemirror from working properly.

I am not actively testing against every new browser release, and vendors have a habit of introducing bugs all the time, so I am relying on the Community to tell me when something breaks. see here for information on how to contact me.

Mobile browsers mostly kind of work, but, because of limitations and their fundamentally different UI assumptions, show a lot of quirks that are hard to work around.

Commercial support

Codemirror is developed and maintained by me, marijn haverbeke, in my own time. If your company is getting value out of codemirror, please consider purchasing a support contract.

    • You'll be funding further work on codemirror.
    • You ensure that you get a quick response when you have a problem, even when I am otherwise busy.

Codemirror support contracts exist in two forms-BasicAt €0. 100 per month, andPremiumAt € 500 per month. Contact me for further information.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.