Auto Syntax formatting

Is there a way to force Atom syntax by file extension? I’d love to just open up the files and have the grammar set to the one I need without having to manually change to it.

Atom somehow needs to know what syntax it should apply to your source. There are several ways to “tell” Atom:

  1. Install a syntax package that adds highlighting for that type
  2. Apply supported syntax to files of a certain extension
  3. Apply supported syntax to files of a certain scope

I have installed one or two packages but they are either not working or I don’t know how to use them properly