mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 13:01:08 -05:00
default: text.
This commit is contained in:
parent
ac3e08a728
commit
4c10e5eba4
@ -26,6 +26,7 @@ $config['ace_languages'] = array(
|
||||
'latex' => 'latex',
|
||||
'sql' => 'sql',
|
||||
'xml' => 'xml',
|
||||
'0' => 'text',
|
||||
'abap' => 'abap',
|
||||
'actionscript' => 'actionscript',
|
||||
'actionscript3' => 'actionscript',
|
||||
@ -43,7 +44,6 @@ $config['ace_languages'] = array(
|
||||
'c_mac' => 'c_cpp',
|
||||
'c_winapi' => 'c_cpp',
|
||||
'csharp' => 'csharp',
|
||||
'css' => 'css',
|
||||
'd' => 'd',
|
||||
'dart' => 'dart',
|
||||
'dot' => 'dot',
|
||||
|
@ -275,7 +275,15 @@ ST.ace_init = function() {
|
||||
|
||||
ST.ace_setlang = function() {
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user