[Greasemonkey] Use CodeMirror editor instead of textarea in anywhere
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib fix: restore textarea from codeMirror Dec 27, 2018
.gitignore feat: support prettier and anywhere Dec 27, 2018
LICENSE initial commit May 9, 2015
README.md Update README.md Dec 27, 2018
package.json Update build Dec 27, 2018
webpack.config.js Update build Dec 27, 2018
yarn.lock Update build Dec 27, 2018

README.md

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