Update: this is now much easier to do:
- Open the .html.eco file
- In the status bar (lower-right), click the dropdown that says "Text"
- Select the "HTML" option
- Open the dropdown again and select the "Set as Default" option at the top
Original answer:
There's a backlog item for making this easily configurable (please upvote!), but in the meantime you can do it by writing a very simple Brackets extension:
define(function (require, exports, module) {
var LanguageManager = brackets.getModule("language/LanguageManager");
var language = LanguageManager.getLanguage("html");
language.addFileExtension("html.eco");
});
- Put this code in a file named main.js
- In Brackets, go to Help > Show Extensions Folder
- Create a new folder under
user
, and place the main.js file inside it - Restart Brackets
Here's more info on writing Brackets extensions, if you're curious.