mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-15 03:23:45 +00:00
7254cda535
Updated to
6b88b939c2
Includes fixes for drag delay (bug 60432)
and chrome useragent detection: Github issue
https://github.com/ajaxorg/ace/issues/1950
Bug: T62432
Change-Id: I5ac67a812f09ac43e73475613afc9a3f1ddc9a75
37 lines
762 B
JavaScript
37 lines
762 B
JavaScript
define("ace/snippets/velocity",["require","exports","module"], function(require, exports, module) {
|
|
"use strict";
|
|
|
|
exports.snippetText = "# macro\n\
|
|
snippet #macro\n\
|
|
#macro ( ${1:macroName} ${2:\\$var1, [\\$var2, ...]} )\n\
|
|
${3:## macro code}\n\
|
|
#end\n\
|
|
# foreach\n\
|
|
snippet #foreach\n\
|
|
#foreach ( ${1:\\$item} in ${2:\\$collection} )\n\
|
|
${3:## foreach code}\n\
|
|
#end\n\
|
|
# if\n\
|
|
snippet #if\n\
|
|
#if ( ${1:true} )\n\
|
|
${0}\n\
|
|
#end\n\
|
|
# if ... else\n\
|
|
snippet #ife\n\
|
|
#if ( ${1:true} )\n\
|
|
${2}\n\
|
|
#else\n\
|
|
${0}\n\
|
|
#end\n\
|
|
#import\n\
|
|
snippet #import\n\
|
|
#import ( \"${1:path/to/velocity/format}\" )\n\
|
|
# set\n\
|
|
snippet #set\n\
|
|
#set ( $${1:var} = ${0} )\n\
|
|
";
|
|
exports.scope = "velocity";
|
|
exports.includeScopes = ["html", "javascript", "css"];
|
|
|
|
});
|