Repository navigation
feat(learning-ui): upgrade web code editor to CodeMirror 6 with Prettier formatting - #334
Draft
FaisalMisbah23 wants to merge 2 commits into
Draft
FaisalMisbah23 wants to merge 2 commits into
FaisalMisbah23 wants to merge 2 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<textarea>editor in web graded code exercises (CodeExerciseClient) and inline runnable JS blocks (RunnableJs) with a shared CodeMirror 6 editor (CodeMirrorEditor) supporting syntax highlighting, bracket matching/auto-closing, 2-spaceTab/Shift+Tabindentation, active-line highlighting, and undo/redo history.Shift+Alt+F) powered by lazy-loadedprettier/standalone(formatCode) that preserves cursor position, supportsCtrl+Zundo, and displays concise single-line syntax errors when code cannot parse.--cm-*syntax tokens to match Edorax's--code-*theme surfaces, plus unit tests forformatCodeandcanFormatLanguage.CodeExerciseClient'srenderEditorprop intact so the desktop workspace editor is unaffected.