openblocks icon indicating copy to clipboard operation
openblocks copied to clipboard

"Code editor"?

Open meowcat opened this issue 3 years ago • 2 comments

Hi,

there is currently "text area", "rich text editor" and "json editor".

I would like a code input, basically the json editor without json parsing.

A "text area" in monospace font would be a first approximation, but I can't find a font setting. The line numbers as in the json editor would be cooler. Is this planned, am I maybe only missing a click somewhere? Is there a way to access the raw content of json editor components?

meowcat avatar Nov 17 '22 15:11 meowcat

Hi, could you please give us some background on why a json editor without json parsing is needed?

neon-balcony avatar Nov 18 '22 01:11 neon-balcony

I don't need a "json editor without json parsing" but a generic code editor, to edit (for example) YAML code, Markdown, etc. Really just a Textarea with monospace font and line numbers. Like https://ace.c9.io/ (but syntax highlighting is luxury and not needed)

I understand this is a luxury request and a textarea also does the job. But you already seem to have a "code editor" built in, so it could be easy to do :)

meowcat avatar Nov 18 '22 16:11 meowcat