You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
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:
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)
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:
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
The text was updated successfully, but these errors were encountered: