kopia lustrzana https://github.com/c9/core
allow setting default syntax for the project
rodzic
0d9879dcd3
commit
4fefbac1fa
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "c9",
|
||||
"description": "New Cloud9 Client",
|
||||
"version": "3.0.1",
|
||||
"version": "3.0.2357",
|
||||
"author": "Ajax.org B.V. <info@ajax.org>",
|
||||
"private": true,
|
||||
"main": "bin/c9",
|
||||
|
|
|
@ -1375,7 +1375,7 @@ define(function(require, exports, module) {
|
|||
}
|
||||
|
||||
function getMode(syntax) {
|
||||
syntax = (syntax || "text").toLowerCase();
|
||||
syntax = (syntax || settings.get("project/ace/@defaultSyntax") || "text").toLowerCase();
|
||||
if (syntax.indexOf("/") == -1)
|
||||
syntax = "ace/mode/" + syntax;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue