-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.js
24 lines (19 loc) · 832 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*jslint vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 4, maxerr: 50 */
/*global define, brackets */
/*
* Brackets ECO template syntax highlighter.
* © 2015, Steve McArthur, MIT License
* https://github.com/SteveMcArthur/brackets-eco
*/
define(function (require, exports, module) {
"use strict";
require('./coffeescript2');
var codemirror = brackets.getModule("thirdparty/CodeMirror2/lib/codemirror");
codemirror.defineMIME("application/x-eco", {name: "htmlembedded", scriptingModeSpec:"coffeescript2"});
var LanguageManager = brackets.getModule("language/LanguageManager");
LanguageManager.defineLanguage("eco", {
name: "ECO",
mode: ["htmlembedded", "application/x-eco"],
fileExtensions: ["eco","html.eco"]
});
});