Added velocity mode and sample doc to demo
This commit is contained in:
parent
646b0442b6
commit
31aede445d
3 changed files with 47 additions and 1 deletions
|
|
@ -132,6 +132,7 @@ var docs = {
|
||||||
"docs/toml.toml": "TOML",
|
"docs/toml.toml": "TOML",
|
||||||
"docs/typescript.ts": "Typescript",
|
"docs/typescript.ts": "Typescript",
|
||||||
"docs/vbscript.vbs": "VBScript",
|
"docs/vbscript.vbs": "VBScript",
|
||||||
|
"docs/velocity.vm": "Velocity",
|
||||||
"docs/xml.xml": "XML",
|
"docs/xml.xml": "XML",
|
||||||
"docs/xquery.xq": "XQuery",
|
"docs/xquery.xq": "XQuery",
|
||||||
"docs/yaml.yaml": "YAML",
|
"docs/yaml.yaml": "YAML",
|
||||||
|
|
|
||||||
44
demo/kitchen-sink/docs/velocity.vm
Normal file
44
demo/kitchen-sink/docs/velocity.vm
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
#*
|
||||||
|
This is a sample comment block that
|
||||||
|
spans multiple lines.
|
||||||
|
*#
|
||||||
|
|
||||||
|
#macro ( outputItem $item )
|
||||||
|
<li>${item}</li>
|
||||||
|
#end
|
||||||
|
|
||||||
|
## Define the items to iterate
|
||||||
|
#set ( $items = [1, 2, 3, 4] )
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
## Iterate over the items and output the evens.
|
||||||
|
#foreach ( $item in $items )
|
||||||
|
#if ( $_MathTool.mod($item, 2) == 0 )
|
||||||
|
#outputItem ($item)
|
||||||
|
#end
|
||||||
|
#end
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
/*
|
||||||
|
A sample function to decomstrate
|
||||||
|
JavaScript highlighting and folding.
|
||||||
|
*/
|
||||||
|
function foo(items, nada) {
|
||||||
|
for (var i=0; i<items.length; i++) {
|
||||||
|
alert(items[i] + "juhu\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
/*
|
||||||
|
A sample style to decomstrate
|
||||||
|
CSS highlighting and folding.
|
||||||
|
*/
|
||||||
|
.class {
|
||||||
|
font-family: Monaco, "Courier New", monospace;
|
||||||
|
font-size: 12px;
|
||||||
|
cursor: text;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -103,6 +103,7 @@ var modesByName = {
|
||||||
toml: ["toml" , "toml"],
|
toml: ["toml" , "toml"],
|
||||||
typescript: ["Typescript" , "typescript|ts|str"],
|
typescript: ["Typescript" , "typescript|ts|str"],
|
||||||
vbscript: ["VBScript" , "vbs"],
|
vbscript: ["VBScript" , "vbs"],
|
||||||
|
velocity: ["Velocity" , "vm"],
|
||||||
xml: ["XML" , "xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl"],
|
xml: ["XML" , "xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl"],
|
||||||
xquery: ["XQuery" , "xq"],
|
xquery: ["XQuery" , "xq"],
|
||||||
yaml: ["YAML" , "yaml"]
|
yaml: ["YAML" , "yaml"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue