forked from phcode-dev/staging.phcode.dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.js
More file actions
1 lines (1 loc) · 733 Bytes
/
Copy pathmain.js
File metadata and controls
1 lines (1 loc) · 733 Bytes
1
define(function(require,exports,module){var LanguageManager=brackets.getModule("language/LanguageManager"),CodeMirror=brackets.getModule("thirdparty/CodeMirror/lib/codemirror");brackets.getModule(["thirdparty/CodeMirror/mode/handlebars/handlebars"],function(){CodeMirror.defineMode("htmlhandlebars",function(config){return CodeMirror.multiplexingMode(CodeMirror.getMode(config,"text/html"),{open:"{{",close:"}}",mode:CodeMirror.getMode(config,"handlebars"),parseDelimiters:!0})}),CodeMirror.defineMIME("text/x-handlebars-template","htmlhandlebars"),LanguageManager.defineLanguage("handlebars",{name:"Handlebars",mode:["htmlhandlebars","text/x-handlebars-template"],fileExtensions:["hbs","handlebars"],blockComment:["{{!","}}"]})})});