by spankalee · 2y ago · 0 comments
You can put a basic code editor on your page like:
<cm-editor></cm-editor>
and drop in themes and modes like: <cm-editor>
<cm-lang-javascript typescript></cm-lang-javascript>
<cm-theme-one-dark></cm-theme-one-dark>
</cm-editor>
This works in plain HTML or any framework.How about a dist folder with a plain js file (or a js file and a css file) that you can load directly?
I am sick unto death of Node and all its associates.
I publish to npm because 1) Package managers are a fabulous idea. They're an easy way to download a package and it's dependencies, and update them over time. 2) it's not a good idea to push build artifacts to your repo, 3) This depends on CodeMirror, which is published to npm. Otherwise I would have to provide it too. That's too much work. 4) you don't need to be a Node developer to use npm.