Color Coding Syntax in Notepad++ for html.erb files

1.5k views Asked by At

In Notepad++, I can't color code my html.erb files. At first, I didn't think this was a problem, but then I realized that it's making my work extremely difficult.

There are options to highlight with Ruby, and options to highlight with HTML.

HTML.erb files though include both html and ruby.

Does anyone know how to color-code for html.erb files?

1

There are 1 answers

2
Spencer Williams On

This question led me to this repo for a User Defined XML made for HTML with Twig templating. With some tweaks, especially in the Operators & Delimiters tab of the User Defined Language settings window, I have found it very useful for better highlighting ERB templating in HTML files.