Could we have more extensive examples? #66

Open
opened 2024-05-26 02:17:35 +02:00 by merlinz01 · 0 comments
merlinz01 commented 2024-05-26 02:17:35 +02:00 (Migrated from github.com)

Getting started with CodeMirror is a significant learning curve.
There are some examples of things useful for extension development but not as many of the basics.
It would be great if we could have examples of all of the following, geared toward first-time users (like me):

  • Creating an editor
  • Deleting an editor (do we need to delete the view/state?)
  • (Dynamically) changing the highlighting language
  • Specifying/customizing the highlighting color theme
  • Querying undo state to see if document has changed
  • Resetting undo state when loading another document
  • Having a function called on each change
Getting started with CodeMirror is a significant learning curve. There are some examples of things useful for extension development but not as many of the basics. It would be great if we could have examples of all of the following, geared toward first-time users (like me): - Creating an editor - Deleting an editor (do we need to delete the view/state?) - (Dynamically) changing the highlighting language - Specifying/customizing the highlighting color theme - Querying undo state to see if document has changed - Resetting undo state when loading another document - Having a function called on each change
Sign in to join this conversation.
No labels
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
codemirror/website#66
No description provided.