Marker Tool for CodeX.Editor
npm install codex.editor.marker
Marker Tool for highlighting text-fragments for the CodeX Editor.

Get the package
``shell`
npm i --save-dev codex.editor.marker
Include module at your application
`javascript`
const Marker = require('codex.editor.marker');
1. Upload folder dist from repositorydist/bundle.js
2. Add file to your page.
You can load specific version of package from jsDelivr CDN.
https://cdn.jsdelivr.net/npm/codex.editor.marker@1.0.1
Require this script on a page with CodeX Editor.
`html`
Add a new Tool to the tools property of the CodeX Editor initial config.
`javascript`
var editor = CodexEditor({
...
tools: {
...
Marker: {
class: Marker,
shortcut: 'CMD+SHIFT+M',
}
},
...
});
This Tool has no config params
Marked text will be wrapped with a mark tag with an cdx-marker class.
`json``
{
"type" : "text",
"data" : {
"text" : "Create a directory for your module, enter it and run npm init command."
}
}