Home Download Buy Blog Forum Support

Rails and Partials - Syntax Highlighting

Rails and Partials - Syntax Highlighting

Postby ginzberg on Sun Jan 15, 2012 3:20 pm

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:
http://tinypic.com/view.php?pic=4uf8cm&s=5

Thanks!
ginzberg
 
Posts: 1
Joined: Sun Jan 15, 2012 3:12 pm

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 126 guests