Add file line links
Created by: riyad
Allows linking to specific lines in files.
- Line numbers on file content pages are links now
- Appending "#L12" or "#L12-34" to a file URL will highlight those lines
Depends on gitlabhq/pygments.rb#1
Closes #738 (closed)
Merge request reports
Activity
Created by: dzaporozhets
I made a commit with line anchors only - 10d881c9. I authored it with you cause I take code from this PR if you dont mind
By Administrator on 2012-11-07T11:36:17 (imported from GitLab project)
By Administrator on 2012-11-07T11:36:17 (imported from GitLab)
Created by: riyad
I'll look into it and update the PR, because without this highlighting the lines won't work. There is the
hl_lines
option in Pygments, but you have no access to URL anchors on the server side. :(By Administrator on 2012-11-07T13:11:26 (imported from GitLab project)
By Administrator on 2012-11-07T13:11:26 (imported from GitLab)
Created by: riyad
Rebased and updated. It doesn't rewrite the whole text any more. Also JS and CSS are much saner now. ;) But it depends on a custom Pygments formatter for GitLab (see gitlabhq/pygments.rb#1) Note: The Gemfile points to my pygments.rb fork at the moment. The Gemfile needs to be updated to GitLab's fork once the PR is accepted.
By Administrator on 2012-11-10T00:19:31 (imported from GitLab project)
By Administrator on 2012-11-10T00:19:31 (imported from GitLab)
Created by: dzaporozhets
@Riyad I'll take a look tomorrow :) A bit busy with https://github.com/gitlabhq/gitlab-ci today
By Administrator on 2012-11-13T16:15:09 (imported from GitLab project)
By Administrator on 2012-11-13T16:15:09 (imported from GitLab)