Sublime Forum

Rails and Partials - Syntax Highlighting

#1

Sublime Text 2: version 2165

I’m working through the Michael Hartl Rails tutorial, and I began noticing that syntax highlighting was ‘out of sync’. Opening and closing erb tags were not the same color. Upon further inspection, it seemed to only affect the partials: _header.html.erb and _footer.html.erb

If I open a new file and type the same code, the highlighting is as it should be. Once saving, and re-opening, the highlighting is again broken. I’m curious if anyone else has experienced this, and if there is any sort of solution.

See this screenshot to see the saved version on the left, and the freshly created on the right:
tinypic.com/view.php?pic=4uf8cm&s=5

Thanks!

0 Likes