问题描述
根据本新闻稿,Chrome开发者工具可以语法突出显示几种语言,包括.erb文件: https://plus.google.com/+GoogleChromeDevelopers/posts/MnikfMyJ14X
According to this press release, Chrome Developer Tools can syntax highlight several languages, including .erb files: https://plus.google.com/+GoogleChromeDevelopers/posts/MnikfMyJ14X
但是,我的机器上的Chrome Canary或Chrome Stable上的.erb语法高亮似乎都不适用于我(请参见下面的屏幕截图).
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.
任何人都可以确认/拒绝语法高亮显示是否按指示&可以在任何版本的Chrome开发者工具中使用任何Ruby文件吗?
Can anyone confirm/deny if syntax highlighting works as indicated & expected for any Ruby files in any version of Chrome Developer Tools?
推荐答案
我可以确认它可以在我的Chrome版本上正常运行.版本是44.0.2403.157(64位),我正在Arch Linux内核44.0.2403.157(64位)上运行.
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).
这篇关于为什么在Chrome Devtools中语法突出显示不适用于Ruby文件(.erb)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!