InlineCode Tool for CodeX.Editor
npm install codex.editor.inline-code
Inline Tool for marking code-fragments for the CodeX Editor.

Get the package
``shell`
npm i --save-dev codex.editor.inline-code
Include module at your application
`javascript`
const InlineCode = require('codex.editor.inline-code');
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.inline-code@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: {
...
inlineCode: {
class: InlineCode,
shortcut: 'CMD+SHIFT+M',
},
},
...
});
This Tool has no config params
Marked text will be wrapped with a span tag with an inline-code class.
`json``
{
"type" : "text",
"data" : {
"text" : "Create a directory for your module, enter it and run npm init command."
}
}