Any docs for how to use text-buffer standalone, like Monaco, CodeMirror, Ace, and others? #336
Replies: 1 comment
-
That is what In short:
Here's what
Meanwhile, the
So: can In theory, you could write a different “frontend” for There is one place where So it would take a bunch of work to make something that wrapped |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm curious about this. I currently use CodeMirror for some projects:
<code-mirror>element - a Custom Element wrapper around CodeMirror, without compromising on any features (built-in plugins/themes can be specified by string name via DOM attributes for simple cases, while any plugins/themes can be passed in via the JS props for full control (i.e. via templating systems in React, Svelte, Solid.js, etc) to keep things declarative)<live-code>element - an element that uses<code-mirror>to build a live code preview: write HTML on the left, see the live result on the right as you edit the code. Think mini CodePen, embedded anywhere.<live-code>: https://docs.lume.io (don't try Safari desktop, try Chrome, I recently started using Safari and noticed it freezes the whole tab for some reason)I used CodeMirror v6+ because it was built with mobile support from the start, so it works on any phone, using native touch-based text editing controls (f.e. hold finger down to see the OS-native magnifying glass, drag to place the cursor, etc). It's very modern in that sense. Monaco mobile support is essentially none currently.
I'm curious about
text-buffer. Maybe it can be renamed to something else (random idea:pulsar-buffer) so that on its own it can live with a name and used independently.A custom element would be
<pulsar-buffer>. Or is that what<atom-text-editor>already is? Maybe the question is about that.Curious if it can be used standalone, or what it would take to make it standalone.
Also curious how it compares to CodeMirror. Does text-buffer have mobile support? If not, would it be worth migrating to CodeMirror instead, or maybe the ideas can be borrowed for text-buffer?
Beta Was this translation helpful? Give feedback.
All reactions