Skip to content

Commit 7b3ad00

Browse files
authored
Add cpp syntax highlighting to the web GUI (#4922)
1 parent 37c7e1e commit 7b3ad00

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • web/server/vue-cli/src/components/Report

web/server/vue-cli/src/components/Report/Report.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ import {
305305
306306
import { useRoute } from "vue-router";
307307
308+
import { basicSetup } from "codemirror";
308309
import {
309310
Decoration,
310311
EditorView,
@@ -557,6 +558,7 @@ onMounted(() => {
557558
editor.value = new EditorView({
558559
parent: editorContainer.value,
559560
extensions: [
561+
basicSetup,
560562
lineNumbers(),
561563
highlightSelectionMatches(),
562564
EditorState.readOnly.of(true),

0 commit comments

Comments
 (0)