/codemirror-anywhere

[Greasemonkey] Use CodeMirror editor instead of textarea in anywhere

Primary LanguageJavaScriptMIT LicenseMIT

codemirror-anywhere

Write syntax highlighted Markdown in anywhere.

This script also support formatter by prettier

img1

img2

Installation

Install from codemirror-anywhere.user.js

Dependencies:

You need to install Greasemonkey extension before installing this script.

Usage

  1. Focus any <textarea>
  2. Press Cmd+E or Ctrl+E
    • Toggle textarea with CodeMirror
  3. Press Cmd+E or Ctrl+E
    • Restore textarea from CodeMirror

Shortcut

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT