I am using the atom text editor to write Perl and I would like to have proper syntax highlighting and indentation for the template system used by the Mojolicious framework called Embedded Perl. I have tried to enable the Perl syntax manually in Atom but this does not create automatic indentation when I for instance create a <div> element. So it does not work properly for the Embedded Perl files (html.ep).
How do I bind a syntax highlighting to a specific file extension such that atom automatically associates an extension with a syntax and where can I find a syntax highlighter for atom for Embedded Perl?
If no such syntax highlighter exists, can you perhaps point me in the direction of how to write one myself?