You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new tab that will contain a novel code editor.
This differs of the text area. The idea here is to have a text area that looks like a code editor (like this one: https://tree-sitter.github.io/tree-sitter/playground).
To do so, we will use tree-sitter:
have an editable div (not a text area, <div contenteditable="true">)
Instead of having a linear undo history, investigate an undo history that undoes/redoes block of changed elements. For example if I write int i = 0;tree-sitter with produce the following AST. This will correspond to a main command composed of nested ones: type that contains declarator that contains name and value. So ctrl-Z will undo value first, then name, etc.
Add a new tab that will contain a novel code editor.
This differs of the text area. The idea here is to have a text area that looks like a code editor (like this one: https://tree-sitter.github.io/tree-sitter/playground).
To do so, we will use tree-sitter:
<div contenteditable="true">
)int i = 0;
tree-sitter with produce the following AST. This will correspond to a main command composed of nested ones:type
that containsdeclarator
that containsname
andvalue
. So ctrl-Z will undovalue
first, thenname
, etc.The text was updated successfully, but these errors were encountered: