Bug 1890205 Comment 1 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

for the Breakpoints panel, maybe we could take the console's approach, which uses a custom element instead of spawning a CodeMirror instance:
Declaration of the custom element: https://searchfox.org/mozilla-central/rev/d23849dd6d83edbe681d3b4828700256ea34a654/devtools/client/webconsole/webconsole-ui.js#592-630
Usage https://searchfox.org/mozilla-central/rev/d23849dd6d83edbe681d3b4828700256ea34a654/devtools/client/webconsole/components/Output/message-types/ConsoleCommand.js#58-64
```js
// This uses a Custom Element to syntax highlight when possible. If it's not
// (no CodeMirror editor), then it will just render text.
const messageBody = createElement(
  "syntax-highlighted",
  null,
  visibleMessageText
);
```
for the Breakpoints list panel, maybe we could take the console's approach, which uses a custom element instead of spawning a CodeMirror instance:
Declaration of the custom element: https://searchfox.org/mozilla-central/rev/d23849dd6d83edbe681d3b4828700256ea34a654/devtools/client/webconsole/webconsole-ui.js#592-630
Usage https://searchfox.org/mozilla-central/rev/d23849dd6d83edbe681d3b4828700256ea34a654/devtools/client/webconsole/components/Output/message-types/ConsoleCommand.js#58-64
```js
// This uses a Custom Element to syntax highlight when possible. If it's not
// (no CodeMirror editor), then it will just render text.
const messageBody = createElement(
  "syntax-highlighted",
  null,
  visibleMessageText
);
```

Back to Bug 1890205 Comment 1