According to this answer, this functionality should be built into Atom, and I should use customFileTypes to achieve this. This is what my config looks like:
"*": "exception-reporting": userId: "" welcome: showOnStartup: false core: themes: [ "atom-light-ui" "atom-light-syntax" ] customFileTypes: "source.twig": [ "html" ] editor: invisibles: {} tabLength: 4 showIndentGuide: true showInvisibles: true
Please note that I removed the userId value for security, but I have it in my actual configuration.
Oddly enough, if I switch the customFileTypes order to themes , my theme breaks. Why is this?
More importantly, how do I configure all .twig files to use HTML syntax highlighting (or HTML Mustache?)?
source share