Questions tagged [rouge]

Rouge is an elegant, extendable code highlighter written in pure Ruby.

Rouge supports 72 languages and counting, including Ruby, JavaScript, Swift, Go, C++, and Haskell.

Rouge aims for the highest quality lexing in all its supported languages, even with strange features and odd corner cases.

Rouge themes are 100% compatible with Pygments' stylesheets. No need to remake your theme, and no need to spawn a Python process either. Rouge is made in Ruby

Find more at http://rouge.jneen.net/.

81 questions
2
votes
0 answers

Rouge in Rails v6 CSS failing

Here are the steps I've taken to setup Rouge in my Ruby on Rails app (following the steps listed here and here). Added gem 'rouge' to Gemfile. bundle in terminal. Added @import "rouge"; to app/assets/stylesheets/application.css Created the helper…
2
votes
1 answer

How to show the code language on top of jekyll markdown code block

I've seen people's websites with code blocks that resembles markdown code blocks. However, on the side or top of the code block, it would display the language of the code (e.g. html/python/java...). Is that achievable using jekyll for github pages?…
Tim
  • 3,178
  • 1
  • 13
  • 26
2
votes
0 answers

Rouge syntax highlighter options on Kramdown fenced code-blocks

When setting options for Rouge on fenced code blocks, the option gets ignored and has no effect, the HTML doesn't change: ``` html?line_numbers=true ``` I am using Jekyll, Kramdown and Rouge on GitHub Pages. Is this supported - should…
2
votes
1 answer

Jekyll with Rouge and KaTeX cannot have $ in code

I am creating a new Jekyll blog setup where I want to self-host and generate server-side everything I can (so basically everything besides Disqus and Google Analytics). I want my site to work well even on browsers with JS turned off, which is why I…
Mateusz Kubuszok
  • 24,995
  • 4
  • 42
  • 64
2
votes
1 answer

Custom Syntax Highlighter with Jekyll on Github Pages

How can I create a custom syntax highlighter to use with Jekyll on GitHub Pages?
user2740741
  • 89
  • 1
  • 8
2
votes
1 answer

Kramdown/Rouge doesn't highlight syntax?

I've been building a small personal site with Jekyll and Rouge isn't highlighting my syntax. Can anyone help explain why? _config.yml: title: My Name author: My Name url: "http://myname.com" baseurl: "" permalink: /projects/:title markdown:…
user5359735
2
votes
1 answer

Syntaxhighlighting with Redcarpet and Rouge does not work in Rails 5 app

Does anyone have experience with the Redcarpet and Rouge gems for Rails? I'm trying to use the gems for syntaxhighlighting in my blogapplication. I based my implementation on this blogpost: http://www.brettdemetris.com/posts/4 These are the steps I…
Toontje
  • 1,415
  • 4
  • 25
  • 43
2
votes
2 answers

How to configure ROUGE properties file for ROUGE-SU4

I am using ROUGE for evaluating summary.I follow all the steps given in http://kavita-ganesan.com/content/rouge-2.0-documentation . I get results upto ROUGE 3 but I am facing problem for ROUGE-L and ROUGE-SU-4.
Narendra
  • 41
  • 4
2
votes
1 answer

Fenced code blocks in Jekyll with kramdown?

I have a GitHub Pages site, built with Jekyll, on which I want to add code highlighting. When I try to use fenced code blocks, they are not rendered locally, but they work fine on the live GitHub site. My Markdown file is like…
DisgruntledGoat
  • 70,219
  • 68
  • 205
  • 290
2
votes
1 answer

Fenced codeblocks in Jekyll

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…
Christian Tang
  • 1,450
  • 4
  • 19
  • 30
1
vote
0 answers

Rouge-L score very low

I use huggingface transformer api to calculate the rouge score of summarization results. The rouge-1 and rouge-2 scores are fine, but I find my rouge-L score is very low compared to the results in papers. For example, in the dataset of eife, the…
1
vote
0 answers

ROUGE-1.5.1.pl problem when train seq2seq model

It is a problem about seq2seq-summarizer. ( more details see)I run these codes on Google colab. I just train it one epoch,and it returns an error. the imformation about the error and I download ROUGE-1.5.5.pl from network and I just put this file…
taro
  • 11
  • 3
1
vote
0 answers

ROUGE score metric for non-english(Arabic) language is not working

ROUGE score metric is not working for Arabic evaluation, what should I do? !pip install rouge_score from datasets import load_metric metric= load_metric("rouge") pred_str =['السلام عليكم كيف حالك'] label_str=['السلام عليكم صديقي كيف…
1
vote
0 answers

Style Jekyll page using Rouge similar to GitHub Gist

Due to the GDPR regulation, I'm migrating all of my embedded Gists on my Jekyll-based GitHub Page https://mu88.github.io to Rouge. When enabling line numbers in Rouge, the result looks pretty messy compared to Gist: Rouge Gist Example…
mu88
  • 4,156
  • 1
  • 23
  • 47
1
vote
1 answer

Where can I find "all Rouge options"?

I am using Jekyll to create a static website. I want to use _config.yml to configure rouge in kramdown. After looking through the documentation for jekyll and kramdown, I found that it mentions Furthermore all Rouge options (e.g. ‘line_numbers’)…
liblaf
  • 13
  • 4