Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Append .erb to ERB files so they syntax highlight better #549

Open
calebmeyer opened this issue Jul 17, 2019 · 0 comments
Open

Append .erb to ERB files so they syntax highlight better #549

calebmeyer opened this issue Jul 17, 2019 · 0 comments

Comments

@calebmeyer
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant