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
0
votes
1 answer

Jekyll syntax highlighting not working properly, shows rectangle around text

I am attempting to change the syntax highlighting for the code in my Jekyll website. What I tried: Step 1: I put my code inside Jekyll highlighter {% highlight html %} // some code here {% endHighlight %} Step 2: I downloaded monokai.css file from…
sciffany
  • 380
  • 1
  • 4
  • 12
0
votes
1 answer

"lilenos" parameter on Jekyll highlight tag makes the code disappear and only render the line numbers

I am writing a blog using Jekyll 4.0 on Windows 10, and when I use the highlight tag, everything works perfectly, however, once i use the linenos parameter, the web breaks and looks like this: If I inspect the html source, the code doesn't seem to…
Aleix Sanchis
  • 302
  • 3
  • 12
0
votes
1 answer

What can I call out a portion of the result return from Rouge?

Beginner here that needs help! Tried googling but not much info What should i do if I only want to return only the set of digits in rouge-l? enter image description here
user7378789
  • 99
  • 1
  • 5
0
votes
1 answer

Rouge gem minimal example not showing formatting?

I have followed the simple instructions in part A) of this answer. The code can be seen in the browser, but it's not formatted as it's supposed to be. When I view source, I can see that css classes are being generated, but it doesn't seem to…
stevec
  • 41,291
  • 27
  • 223
  • 311
0
votes
1 answer

Highlight Liquid with Rouge & Jekyll

I am trying to highlight a block of liquid and html code, but it doesnt seem to be working. All other languages work fine. i am using Jekyll v3.8.5 and the Rouge version in gemfile.lock is v3.3.0 I have been wrapping the code blocks in {% highlight…
mrpbennett
  • 1,527
  • 15
  • 40
0
votes
2 answers

How to configure Jekyll Syntax Highlight?

By configure I mean font size, font family, syntax highlight style, line numbers and so on. I have followed some tutorials but they don't worked for me. What I did: added markdown: kramdown and highlighter: rouge to _config.yml; added a css theme…
tomrlh
  • 1,006
  • 1
  • 18
  • 39
0
votes
1 answer

How to evaluate auto summary generated with gold summaries with Rouge metric?

I'm working on a auto summarization system and I want to evaluate my output summary with my gold summaries. I have multiple summaries with different length for each case. So I'm a little confused in here. my question is that how should I evaluate…
0
votes
1 answer

SyntaxError print(*args, **kwargs)

I've got an error as a traceback below: Traceback (most recent call last): File "setup_rouge.py", line 7, in from files2rouge import settings File "/home/cerdas/files2rouge/files2rouge/__init__.py", line 2, in from…
Bily
  • 51
  • 9
0
votes
1 answer

Jekyll - Rouge does not work in my custom theme

I am making my own theme in Jekyll, and I wanted to use syntax highlighting. For this I did: 1) Install rouge and kramdown in my Gemfile gem 'kramdown' gem 'rouge' 2) Update my _config.yml markdown: kramdown highlighter: rouge 3) Write some code…
Enrique Moreno Tent
  • 24,127
  • 34
  • 104
  • 189
0
votes
3 answers

Jekyll: line numbers are not starting from first line

I created my website using Jekyll, using Beatiful-Jekyll theme to be precise. For the syntax highlighting I used Rouge. When I don't show line numbers everything work great. When I show line numbers, sometimes the line numbers do not start from the…
Ghassany
  • 45
  • 5
0
votes
2 answers

pyrouge tuple out of index

I'm trying to use the pyrouge to calculate the similarity between automated summary and gold standards. When it process both summaries, Rouge works ok. But when it writes the result, it complains that "tuple index out of range" Does anyone know what…
Nat
  • 50
  • 7
0
votes
0 answers

How do you change the syntax coloring for code snippets in Jekyll?

I'm using github.io to host a website that's built with Jekyll. I'm having a little trouble customizing my configuration. I don't like the default syntax coloring, so I want to change the coloring scheme. I researched this a bit, and I found some…
0
votes
0 answers

ROUGE Warning: test instance for peer 13 does not exist for evaluation 5

I use rouge to evaluate my summary result. the setting xml looks like this: The model files and system files are are all in the a folder 'models' and 'systems', like this: After running the rouge script, i get a lots of warning as: Is there…
hunter
  • 529
  • 2
  • 6
  • 16
0
votes
2 answers

Match a string but capture only substring of it's match in ruby

I am extending rouge shell lexer for my jekyll site and I want to do the following. Match --word. Capture word, discard --. Match . Capture word, discard both < and >. Match word=anyNumber.word. Capture word and anyNumber.word, discard…
Dennis Grinch
  • 353
  • 3
  • 13
0
votes
2 answers

Rails asset css.erb is not loading

I'm configuring Markdown in Rails 4 with Redcarpet and Rouge. And I'm following this simple post Everything is working fine (both in development and production) except that my file assets/stylesheets/rouge.css.erb seems not to be loading. And it…
Seybo Glaux
  • 787
  • 1
  • 7
  • 16