Indenting in the code editor (Tab key) #77

Closed
opened 2024-09-01 22:39:42 +02:00 by liquidev · 1 comment
liquidev commented 2024-09-01 22:39:42 +02:00 (Migrated from github.com)

Currently the Tab key does what the Tab key usually does (jumps between fields.) It should instead insert a 2-space indent, and the indent should be preserved when you create new lines.

Currently the `Tab` key does what the `Tab` key usually does (jumps between fields.) It should instead insert a 2-space indent, and the indent should be preserved when you create new lines.
liquidev commented 2024-09-05 21:35:17 +02:00 (Migrated from github.com)

I've done a bit of work to extend <textarea> with this functionality (available as CodeEditor, <rkgk-code-editor>.) This might have broken undo/redo a bit; it's a shame web browsers don't expose a simple API to work with text areas and such.

I've done a bit of work to extend `<textarea>` with this functionality (available as `CodeEditor`, `<rkgk-code-editor>`.) This might have broken undo/redo a bit; it's a shame web browsers don't expose a simple API to work with text areas and such.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: liquidex/rkgk#77
No description provided.