rouge

Errors installing Pyrouge

筅森魡賤 提交于 2019-12-12 02:57:48
问题 I'm currently trying to install pyrouge, and I'm getting the following errors ====================================================================== ERROR: test_options (pyrouge.tests.Rouge155_test.PyrougeTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pyrouge/tests/Rouge155_test.py", line 218, in test_options pyrouge_output = check_output_clean(pyrouge_command) File "/usr/local/lib

Fenced codeblocks in Jekyll

老子叫甜甜 提交于 2019-12-08 17:56:26
I have just upgraded my local Jekyll installation to Jekyll 3.0.2. I was looking forward to use fenced (backticks) code blocks when posting source code. This however doesn't work, and I still have to use Liquid tags to specify codeblocks My build settings in _config.yml: baseurl: / destination: _site permalink: pretty markdown: kramdown kramdown: input: GFM syntax_highlighter: rouge List of Ruby gems installed activesupport (4.2.5.1) addressable (2.3.8) bigdecimal (1.2.6) bundler (1.11.2) coffee-script (2.4.1) coffee-script-source (1.10.0) colorator (0.1) ethon (0.8.1) execjs (2.6.0) faraday

Jekyll Syntax Highlighting Not Working - Classes Are Not Being Added

别说谁变了你拦得住时间么 提交于 2019-12-01 08:06:31
I cannot get syntax highlighting to work on my Jekyll-powered blog. The development files can be found here: https://github.com/StevenXL/stevenxl.github.io . As you can see, in my _config.yml file, I have the following: markdown: kramdown kramdown: syntax_highlighter: rouge In my css/custom.css file, I am importing the CSS file to highlight the syntax with an @import command. The actual CSS file for highlighting lives in css/monokai.css . I am not sure what I am doing wrong. This seems to work fine on my local preview when I run jekyll serve but not when I push the development files to GitHub

Jekyll Syntax Highlighting Not Working - Classes Are Not Being Added

混江龙づ霸主 提交于 2019-12-01 05:37:07
问题 I cannot get syntax highlighting to work on my Jekyll-powered blog. The development files can be found here: https://github.com/StevenXL/stevenxl.github.io. As you can see, in my _config.yml file, I have the following: markdown: kramdown kramdown: syntax_highlighter: rouge In my css/custom.css file, I am importing the CSS file to highlight the syntax with an @import command. The actual CSS file for highlighting lives in css/monokai.css . I am not sure what I am doing wrong. This seems to work

How do I implement Rouge syntax highlighting in Rails?

依然范特西╮ 提交于 2019-11-29 02:48:54
问题 There are a bunch of tutorials floating around, but they seem to be incomplete or not fully current or don't fully work for me. This is what I have done. Gemfile: gem 'rouge' gem 'redcarpet' Then I created a config/initializer/rouge.rb : require 'rouge/plugins/redcarpet' Then I created a file called app/assets/stylesheets/rouge.css.erb <%= Rouge::Themes::Github.render(:scope => '.highlight') %> Then in my app/helpers/application_helper.rb , I added this: module ApplicationHelper class HTML <