问题
According to this press release, Chrome Developer Tools can syntax highlight several languages, including .erb files: https://plus.google.com/+GoogleChromeDevelopers/posts/MnikfMyJ14X
However, .erb syntax highlighting doesn't seem to work for me on neither Chrome Canary or Chrome Stable on my machine (see screenshot below).
There doesn't appear to be anything to configure, so I'm not sure what could be the issue or if there is an issue to resolve.
Can anyone confirm/deny if syntax highlighting works as indicated & expected for any Ruby files in any version of Chrome Developer Tools?
回答1:
I can confirm that it works on my build of Chrome. The version is 44.0.2403.157 (64-bit) and I'm running it on Arch Linux, kernel 44.0.2403.157 (64-bit).
来源:https://stackoverflow.com/questions/24878978/why-isnt-syntax-highlighting-working-for-ruby-files-erb-in-chrome-devtools