mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-10-28 16:56:39 +01:00
Initial commit for v2.4.3
This commit is contained in:
36
static/filemanager/js/ace/snippets/velocity.js
Executable file
36
static/filemanager/js/ace/snippets/velocity.js
Executable file
@@ -0,0 +1,36 @@
|
||||
ace.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"];
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user