codemirror-console-ui
v3.2.0
Published
codemirror-console ui components
Downloads
622
Readme
codemirror-console-ui
Web UI Components of codemirror-console.
Installation
npm install codemirror-console-uiUsage
import { attachToElement } from "codemirror-console-ui"
const codeBlock = document.querySelector("code");
attachToElement(codeBlock, "default text", {
state: "open",
scrollIntoView: true
});How to custom Localization?
If you want to custom locale, please add translated text to components/localization.js.
- Add translated text to components/localization.js
- Add lang(like "en", "ja") to components/mirror-console-component.js
- Submit Pull Request!
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
License
MIT
