mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
I decided to create a fork of rouge as rouge lacks a HTML formatter with the required options such as wrapping a line with <span> tags. Furthermore I was not really convinced about the clarity of rouge's source code. Rugments 1.0.0beta3 for now only includes some basic linting and a new HTML formatter. Everything else should behave the same.
11 lines
378 B
Plaintext
11 lines
378 B
Plaintext
.file-content.code{class: user_color_scheme_class}
|
|
.line-numbers
|
|
- if blob.data.present?
|
|
- blob.data.lines.to_a.size.times do |index|
|
|
- offset = defined?(first_line_number) ? first_line_number : 1
|
|
- i = index + offset
|
|
= link_to "#L#{i}", id: "L#{i}", rel: "#L#{i}" do
|
|
%i.fa.fa-link
|
|
= i
|
|
= highlight(blob.name, blob.data)
|