mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 21:11:15 -05:00
default: text.
This commit is contained in:
parent
ac3e08a728
commit
4c10e5eba4
@ -26,6 +26,7 @@ $config['ace_languages'] = array(
|
|||||||
'latex' => 'latex',
|
'latex' => 'latex',
|
||||||
'sql' => 'sql',
|
'sql' => 'sql',
|
||||||
'xml' => 'xml',
|
'xml' => 'xml',
|
||||||
|
'0' => 'text',
|
||||||
'abap' => 'abap',
|
'abap' => 'abap',
|
||||||
'actionscript' => 'actionscript',
|
'actionscript' => 'actionscript',
|
||||||
'actionscript3' => 'actionscript',
|
'actionscript3' => 'actionscript',
|
||||||
@ -43,7 +44,6 @@ $config['ace_languages'] = array(
|
|||||||
'c_mac' => 'c_cpp',
|
'c_mac' => 'c_cpp',
|
||||||
'c_winapi' => 'c_cpp',
|
'c_winapi' => 'c_cpp',
|
||||||
'csharp' => 'csharp',
|
'csharp' => 'csharp',
|
||||||
'css' => 'css',
|
|
||||||
'd' => 'd',
|
'd' => 'd',
|
||||||
'dart' => 'dart',
|
'dart' => 'dart',
|
||||||
'dot' => 'dot',
|
'dot' => 'dot',
|
||||||
|
@ -275,7 +275,15 @@ ST.ace_init = function() {
|
|||||||
|
|
||||||
ST.ace_setlang = function() {
|
ST.ace_setlang = function() {
|
||||||
var lang = $('#lang').val();
|
var lang = $('#lang').val();
|
||||||
var mode = ST.ace_modes[lang];
|
var mode = '';
|
||||||
|
try {
|
||||||
|
mode = ST.ace_modes[lang];
|
||||||
|
} catch (undefined) {
|
||||||
|
mode = 'text';
|
||||||
|
}
|
||||||
|
if (mode === undefined) {
|
||||||
|
mode = 'text';
|
||||||
|
}
|
||||||
ST.ace_editor.getSession().setMode("ace/mode/" + mode);
|
ST.ace_editor.getSession().setMode("ace/mode/" + mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user