According to this answer, this functionality should be built into Atom, and I should be able to use customFileTypes
to accomplish 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
Note that I've removed my userId
value for security, but I do have it in my actual config.
Oddly enough, if I switch the order of customFileTypes
with themes
, my theme breaks. Why is that?
More importantly, how can I set all .twig
files use HTML (or HTML Mustache?) syntax highlighting?
I only got Twig support after installing this package: https://atom.io/packages/php-twig