UNPKG

ace-code-editor

Version:

Ajax.org Code Editor is a full featured source code highlighting editor that powers the Cloud9 IDE

285 lines 5.97 kB
[[ "vm_comment", ["comment.block","#*"] ],[ "vm_comment", ["comment"," This is a sample comment block that"] ],[ "vm_comment", ["comment"," spans multiple lines."] ],[ "start", ["comment","*#"] ],[ "start" ],[ "start", ["keyword","#macro"], ["text"," "], ["lparen","("], ["text"," "], ["identifier","outputItem"], ["text"," "], ["variable","$item"], ["text"," "], ["rparen",")"] ],[ "start", ["text"," "], ["meta.tag.punctuation.tag-open.xml","<"], ["meta.tag.tag-name.xml","li"], ["meta.tag.punctuation.tag-close.xml",">"], ["variable","${"], ["identifier","item"], ["variable","}"], ["meta.tag.punctuation.end-tag-open.xml","</"], ["meta.tag.tag-name.xml","li"], ["meta.tag.punctuation.tag-close.xml",">"] ],[ "start", ["keyword","#end"] ],[ "start" ],[ "start", ["comment","## Define the items to iterate"] ],[ "start", ["keyword","#set"], ["text"," "], ["lparen","("], ["text"," "], ["variable","$items"], ["text"," "], ["keyword.operator","="], ["text"," "], ["lparen","["], ["constant.numeric","1"], ["text.xml",","], ["text"," "], ["constant.numeric","2"], ["text.xml",","], ["text"," "], ["constant.numeric","3"], ["text.xml",","], ["text"," "], ["constant.numeric","4"], ["rparen","]"], ["text"," "], ["rparen",")"] ],[ "start" ],[ "start", ["meta.tag.punctuation.tag-open.xml","<"], ["meta.tag.tag-name.xml","ul"], ["meta.tag.punctuation.tag-close.xml",">"] ],[ "start", ["text"," "], ["comment","## Iterate over the items and output the evens."] ],[ "start", ["text"," "], ["keyword","#foreach"], ["text"," "], ["lparen","("], ["text"," "], ["variable","$item"], ["text"," "], ["identifier","in"], ["text"," "], ["variable","$items"], ["text"," "], ["rparen",")"] ],[ "start", ["text"," "], ["keyword","#if"], ["text"," "], ["lparen","("], ["text"," "], ["support.function","$_MathTool"], ["text.xml","."], ["identifier","mod"], ["lparen","("], ["variable","$item"], ["text.xml",","], ["text"," "], ["constant.numeric","2"], ["rparen",")"], ["text"," "], ["keyword.operator","=="], ["text"," "], ["constant.numeric","0"], ["text"," "], ["rparen",")"] ],[ "start", ["text"," "], ["identifier","#outputItem"], ["text"," "], ["lparen","("], ["variable","$item"], ["rparen",")"] ],[ "start", ["text"," "], ["keyword","#end"] ],[ "start", ["text"," "], ["keyword","#end"] ],[ "start", ["meta.tag.punctuation.end-tag-open.xml","</"], ["meta.tag.tag-name.xml","ul"], ["meta.tag.punctuation.tag-close.xml",">"] ],[ "start" ],[ "js-start", ["meta.tag.punctuation.tag-open.xml","<"], ["meta.tag.script.tag-name.xml","script"], ["meta.tag.punctuation.tag-close.xml",">"] ],[ "js-comment1", ["text"," "], ["comment","/*"] ],[ "js-comment1", ["comment"," A sample function to decomstrate"] ],[ "js-comment1", ["comment"," JavaScript highlighting and folding."] ],[ "js-start", ["comment"," */"] ],[ "js-start", ["text"," "], ["storage.type","function"], ["text"," "], ["entity.name.function","foo"], ["paren.lparen","("], ["variable.parameter","items"], ["punctuation.operator",", "], ["variable.parameter","nada"], ["paren.rparen",")"], ["text"," "], ["paren.lparen","{"] ],[ "js-start", ["text"," "], ["keyword","for"], ["text"," "], ["paren.lparen","("], ["storage.type","var"], ["text"," "], ["identifier","i"], ["keyword.operator","="], ["constant.numeric","0"], ["punctuation.operator",";"], ["text"," "], ["identifier","i"], ["keyword.operator","<"], ["identifier","items"], ["punctuation.operator","."], ["support.constant","length"], ["punctuation.operator",";"], ["text"," "], ["identifier","i"], ["keyword.operator","++"], ["paren.rparen",")"], ["text"," "], ["paren.lparen","{"] ],[ "js-start", ["text"," "], ["support.function","alert"], ["paren.lparen","("], ["identifier","items"], ["paren.lparen","["], ["identifier","i"], ["paren.rparen","]"], ["text"," "], ["keyword.operator","+"], ["text"," "], ["string","\"juhu"], ["constant.language.escape","\\n"], ["string","\""], ["paren.rparen",")"], ["punctuation.operator",";"] ],[ "js-no_regex", ["text"," "], ["paren.rparen","}"] ],[ "js-no_regex", ["text"," "], ["paren.rparen","}"] ],[ "start", ["meta.tag.punctuation.end-tag-open.xml","</"], ["meta.tag.script.tag-name.xml","script"], ["meta.tag.punctuation.tag-close.xml",">"] ],[ "start" ],[ "css-start", ["meta.tag.punctuation.tag-open.xml","<"], ["meta.tag.style.tag-name.xml","style"], ["meta.tag.punctuation.tag-close.xml",">"] ],[ ["css-comment","css-start"], ["text"," "], ["comment","/*"] ],[ ["css-comment","css-start"], ["comment"," A sample style to decomstrate"] ],[ ["css-comment","css-start"], ["comment"," CSS highlighting and folding."] ],[ "css-start", ["comment"," */"] ],[ ["css-ruleset","css-start"], ["text"," "], ["variable",".class"], ["text"," "], ["paren.lparen","{"] ],[ ["css-ruleset","css-start"], ["text"," "], ["support.type","font-family"], ["text",": Monaco, "], ["string","\"Courier New\""], ["text",", "], ["support.constant.fonts","monospace"], ["text",";"] ],[ ["css-ruleset","css-start"], ["text"," "], ["support.type","font-size"], ["text",": "], ["constant.numeric","12"], ["keyword","px"], ["text",";"] ],[ ["css-ruleset","css-start"], ["text"," "], ["support.type","cursor"], ["text",": "], ["support.constant","text"], ["text",";"] ],[ "css-start", ["text"," "], ["paren.rparen","}"] ],[ "start", ["meta.tag.punctuation.end-tag-open.xml","</"], ["meta.tag.style.tag-name.xml","style"], ["meta.tag.punctuation.tag-close.xml",">"] ]]