NEW Introduce code syntax coloration with mode 'ace' for DolEditor.

This commit is contained in:
Laurent Destailleur
2017-07-18 03:18:16 +02:00
parent ae7f2ac253
commit 98ef978b2a
403 changed files with 274584 additions and 2967 deletions

View File

@@ -0,0 +1,27 @@
ace.define("ace/snippets/haml",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText = "snippet t\n\
%table\n\
%tr\n\
%th\n\
${1:headers}\n\
%tr\n\
%td\n\
${2:headers}\n\
snippet ul\n\
%ul\n\
%li\n\
${1:item}\n\
%li\n\
snippet =rp\n\
= render :partial => '${1:partial}'\n\
snippet =rpl\n\
= render :partial => '${1:partial}', :locals => {}\n\
snippet =rpc\n\
= render :partial => '${1:partial}', :collection => @$1\n\
\n\
";
exports.scope = "haml";
});