allow setting default syntax for the project

pull/134/head
nightwing 2015-08-14 22:40:01 +04:00
rodzic 0d9879dcd3
commit 4fefbac1fa
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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",

Wyświetl plik

@ -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;