mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
将monaco-editor作为在线IDE编辑器
This commit is contained in:
1 parent
4c53fc8146
commit
53a6dbeb1a
9 files changed
+81
-134
No files matched your search
+14
-15
@@ -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);
|
||||
Reference in new issue
Block a user