将monaco-editor作为在线IDE编辑器

This commit is contained in:
masnn committed 2020-04-09 18:57:42 +08:00
1 parent 4c53fc8146
commit 53a6dbeb1a
9 files changed
+81 -134

No files matched your search

+14 -15
View File
@@ -32,19 +32,18 @@ export const LANG_HIGHLIGHT_ID = {
rb: 'ruby',
};
export const LANG_CODEMIRROR_MODES = {
c: 'text/x-csrc',
cc: 'text/x-c++src',
cs: 'text/x-csharp',
pas: 'text/x-pascal',
java: 'text/x-java',
py: 'text/x-python',
py3: 'text/x-python',
php: 'text/x-php',
rs: 'text/x-rustsrc',
hs: 'text/x-haskell',
js: 'text/javascript',
go: 'text/x-go',
rb: 'text/x-ruby',
export const LANG_MONACO_MODES = {
c: 'cpp',
cc: 'cpp',
cs: 'csharp',
pas: 'pascal',
java: 'java',
py: 'python',
py3: 'python',
php: 'php',
rs: 'rust',
hs: 'haskell',
js: 'javascript',
go: 'go',
rb: 'ruby',
};
attachObjectMeta(LANG_CODEMIRROR_MODES, 'exportToPython', false);