APPLE 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
..
debug 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
dist 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
src 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
.eslintrc 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
.npmignore 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
.travis.yml 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
CONTRIBUTING.md 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
LICENSE 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
README.md 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
bower.json 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
gulpfile.js 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
package.json 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos

README.md

CodeMirror Spell Checker

Spell checking so simple, you can set up in 60 seconds. It will highlight any misspelled words in light red. Works great in conjunction with other CodeMirror modes, like GitHub Flavored Markdown.

Demo

Screenshot

Install

Via npm.

npm install codemirror-spell-checker --save

Via bower.

bower install codemirror-spell-checker --save

Via jsDelivr. Please note, jsDelivr may take a few days to update to the latest release.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/codemirror.spell-checker/latest/spell-checker.min.css">
<script src="https://cdn.jsdelivr.net/codemirror.spell-checker/latest/spell-checker.min.js"></script>

Quick start

Once CodeMirror is installed and loaded, first provide CodeMirror Spell Checker with the correct CodeMirror function. Then, just set the primary mode to "spell-checker" and the backdrop mode to your desired mode. Be sure to load/require overlay.min.js if you haven't already.

CodeMirrorSpellChecker({
	codeMirrorInstance: CodeMirror,
});

CodeMirror.fromTextArea(document.getElementById("textarea"), {
	mode: "spell-checker",
	backdrop: "gfm" // Your desired mode
});

That's it!

Customizing

You can customize the misspelled word appearance by updating the CSS. All misspelled words will have the .cm-spell-error class.

.CodeMirror .cm-spell-error{
	/* Your styling here */
}