Skip to content

Commit f5d51ee

Browse files
committed
more languages support (Code mirror)
1 parent bd6b48d commit f5d51ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/IDE.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ export default function IDE({ docId, modal, toggleModal, python, setpython, inpu
603603
}
604604
className="flex-grow text-base"
605605
options={{
606-
mode: 'javascript',
606+
mode: 'text/ecmascript',
607607
theme: 'material',
608608
lineNumbers: true,
609609
scrollbarStyle: null,
@@ -621,7 +621,7 @@ export default function IDE({ docId, modal, toggleModal, python, setpython, inpu
621621
}
622622
className="flex-grow text-base"
623623
options={{
624-
mode: 'pascal',
624+
mode: 'text/x-pascal',
625625
theme: 'material',
626626
lineNumbers: true,
627627
scrollbarStyle: null,
@@ -639,7 +639,7 @@ export default function IDE({ docId, modal, toggleModal, python, setpython, inpu
639639
}
640640
className="flex-grow text-base"
641641
options={{
642-
mode: 'ruby',
642+
mode: 'text/x-ruby',
643643
theme: 'material',
644644
lineNumbers: true,
645645
scrollbarStyle: null,
@@ -657,7 +657,7 @@ export default function IDE({ docId, modal, toggleModal, python, setpython, inpu
657657
}
658658
className="flex-grow text-base"
659659
options={{
660-
mode: 'php',
660+
mode: 'text/x-php',
661661
theme: 'material',
662662
lineNumbers: true,
663663
scrollbarStyle: null,
@@ -675,7 +675,7 @@ export default function IDE({ docId, modal, toggleModal, python, setpython, inpu
675675
}
676676
className="flex-grow text-base"
677677
options={{
678-
mode: 'perl',
678+
mode: 'text/x-perl',
679679
theme: 'material',
680680
lineNumbers: true,
681681
scrollbarStyle: null,

0 commit comments

Comments
 (0)