flight-manual.atom.io icon indicating copy to clipboard operation
flight-manual.atom.io copied to clipboard

Append .erb to ERB files so they syntax highlight better

Open calebmeyer opened this issue 6 years ago • 0 comments
trafficstars

Summary

Our ERB files currently end in .json and .html. If we rename them to .json.erb and .html.erb then Atom, Github, and other places that display the code will be more likely to get the syntax highlighting right.

Motivation

Github in particular highlights ERB within JSON files as red: image

Describe alternatives you've considered

You could name the files just .erb instead of .json.erb, but this seems like we're trading one problem (JSON highlighting ERB wrong) for another (ERB highlighting JSON wrong)

Additional context

Originally asked for on #541

calebmeyer avatar Jul 17 '19 21:07 calebmeyer