[Enhancement] Migrate lib-blockly generated code pane from CodeMirror to Monaco — feature parity #25

Closed
opened 2026-04-28 23:01:20 +00:00 by spikerj · 0 comments
Owner

Background

lib-blockly uses @acrodata/code-editor (CodeMirror 6).

Goal

Migrate the generated‑code code-editor region to Monaco with parity to current Blockly integration.

Feature parity checklist

  • Syntax highlighting for generated languages as today (languages/language).
  • highlightCodeEditorLine() / line gutter behavior (blockly.component.ts): reimplement with Monaco decorations or equivalent so block→code linkage still works.
  • Resize/layout interplay with Blockly + resize.service (codeEditorHeight); no regressions to split-pane UX.
  • Guided tour anchor [data-tour='code-editor'] (see blockly.component.html / tour service) preserved or migrated.
  • Theming consistency with Blockly chrome.

Paths

spikersoft-angular/libraries/tools/src/components/blockly/

## Background **`lib-blockly`** uses **`@acrodata/code-editor`** (CodeMirror 6). ## Goal Migrate the generated‑code **`code-editor`** region to **Monaco** with parity to current Blockly integration. ## Feature parity checklist - [ ] **Syntax highlighting** for generated languages as today (`languages`/`language`). - [ ] **`highlightCodeEditorLine()` / line gutter behavior** (`blockly.component.ts`): reimplement with Monaco decorations or equivalent so block→code linkage still works. - [ ] **Resize/layout** interplay with Blockly + `resize.service` (`codeEditorHeight`); no regressions to split-pane UX. - [ ] Guided tour anchor **`[data-tour='code-editor']`** (see `blockly.component.html` / tour service) preserved or migrated. - [ ] Theming consistency with Blockly chrome. ## Paths `spikersoft-angular/libraries/tools/src/components/blockly/`
Sign in to join this conversation.