4
votes

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?

1
Welcome to Stack Overflow and the Perl tag. I feel with you, but I believe this might be a better fit for superuser.com. If you don't get answers here, you should try there. At least on the writing it yourself part. - simbabque

1 Answers

3
votes

It should have been easy to find with the Atom package search feature. https://github.com/kraih/atom-mojo