File tree 1 file changed +6
-0
lines changed
src/components/Editor/Runners/PythonRunner/PyodideRunner
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ import VisualOutputPane from "./VisualOutputPane";
18
18
import OutputViewToggle from "../OutputViewToggle" ;
19
19
import { SettingsContext } from "../../../../../utils/settings" ;
20
20
import RunnerControls from "../../../../RunButton/RunnerControls" ;
21
+ // import "prismjs/plugins/highlight-keywords/prism-highlight-keywords.js";
22
+ // import Prism from "prismjs";
23
+
24
+ // window.Prism = Prism;
21
25
22
26
const getWorkerURL = ( url ) => {
23
27
const content = `
@@ -111,6 +115,7 @@ const PyodideRunner = (props) => {
111
115
setInputStackIndex ( inputStackIndex - 1 ) ;
112
116
}
113
117
}
118
+ // window.Prism.highlightElement(event.target);
114
119
} ;
115
120
if ( consoleMode ) {
116
121
const inputElement = getInputElement ( ) ;
@@ -122,6 +127,7 @@ const PyodideRunner = (props) => {
122
127
useEffect ( ( ) => {
123
128
if ( awaitingInput && consoleMode ) {
124
129
const inputElement = getInputElement ( ) ;
130
+ // inputElement.classList.add("language-python");
125
131
inputElement . innerText = " " . repeat ( indentationLevel * 4 ) ;
126
132
// move cursor to end of text
127
133
const range = document . createRange ( ) ;
You can’t perform that action at this time.
0 commit comments