[英]Rails Browser Syntax Highlighting Plugin?
什么是语法高亮的标准Rails插件(例如,在网站管理面板中,而不是TextMate),它在Rails项目中开箱即用?
I've seen many different ways for code highlighting in the Rails community. 我在Rails社区中看到了许多不同的代码突出显示方式。
I tried all those solutions in the past. 我过去尝试过所有这些解决方案。 I'm actually using Pygments for a couple of Jekyll blogs and JavaScript based solutions in all the other cases.
我实际上在所有其他情况下使用Pygments来处理几个Jekyll博客和基于JavaScript的解决方案。
I have been using CodeMirror . 我一直在使用CodeMirror 。 Not quite a plugin, but still very straight forward to integrate with Rails.
不是一个插件,但仍然非常直接与Rails集成。
We use highlight.js on http://giantrobots.thoughtbot.com (isn't a Rails app, but whatever), and it's awesome. 我们在http://giantrobots.thoughtbot.com上使用highlight.js(不是Rails应用程序,但无论如何),它真棒。
http://softwaremaniacs.org/soft/highlight/en/ http://softwaremaniacs.org/soft/highlight/en/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.