summaryrefslogtreecommitdiff
path: root/lib/gitlab/highlight.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move :plain option to Highlight classMark Chao2018-10-301-0/+3
| | | | | | This is to DRY the repeated file size check. Move spec and constants to Highlight
* Make Highlight accept language paramMark Chao2018-10-301-8/+6
| | | | | | | | | | This replaces the repository param. This allows more flexiblity as sometimes we have highlight content not related to repository. Sometimes we know ahead of time the language of the content. Lastly language determination seems better fit as a logic in the Blob class. `repository` param is only used to determine the language, which seems to be the responsiblity of Blob.
* Enable frozen string for lib/gitlab/*.rbgfyoung2018-10-221-0/+2
|
* Fix syntax highlight taking too longMark Chao2018-09-031-1/+13
| | | | Use Timeout to switch to plain rendering
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-2/+2
|
* Use Diff::File blob methods from diff highlighterdm-highlight-diff-file-blobDouwe Maan2017-06-081-8/+0
|
* Blob#load_all_data! doesn’t need an argumentblob-load-all-dataDouwe Maan2017-06-071-1/+1
|
* Autolink package names in GemfileDouwe Maan2017-05-101-10/+27
|
* Copy code as GFM from diffs, blobs and GFM code blocksDouwe Maan2017-03-141-2/+2
|
* use the proper variable names o_Ohttp://jneen.net/2016-07-141-2/+2
|
* style: factor out `@lexer` into a methodhttp://jneen.net/2016-07-141-9/+13
|
* fix Gitlab::Highlight#initializer bugs from rebasehttp://jneen.net/2016-07-141-1/+2
|
* use the local lexer variable to respect plain: ...http://jneen.net/2016-07-141-1/+1
|
* inline #rouge_formatterhttp://jneen.net/2016-07-141-6/+2
|
* use the new token_lines interface to format lineshttp://jneen.net/2016-07-141-4/+1
|
* kill the :cssclass optionhttp://jneen.net/2016-07-141-1/+0
|
* kill the nowrap optionhttp://jneen.net/2016-07-141-11/+5
| | | | | the <pre><code> wrapping is *always* used by the helper, and *never* by anywhere else, so pull the wrapping into the helper
* the call site always specifies this optionhttp://jneen.net/2016-07-141-1/+0
|
* do this thing in a clearer wayhttp://jneen.net/2016-07-141-3/+6
|
* support cgi style options, such as erb?parent=jsonhttp://jneen.net/2016-06-271-3/+3
|
* make #custom_language privatehttp://jneen.net/2016-06-271-8/+8
|
* appease rubocophttp://jneen.net/2016-06-271-2/+1
|
* add custom highlighting via .gitattributeshttp://jneen.net/2016-06-271-5/+23
| | | | paired with @stanhu
* Properly handle bigger filesZeger-Jan van de Weg2016-04-281-4/+9
|
* Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into lazy-blobsJacob Vosmaer2016-02-011-0/+1
|
* Don't crash when file can't be highlightedDouwe Maan2016-01-191-9/+3
|
* Refactor Gitlab::Highlight and fix testsDouwe Maan2016-01-191-6/+20
|
* Add inline diff markers in highlighted diffs.Douwe Maan2016-01-141-0/+7
|
* Remove duplication around highlighting.Douwe Maan2016-01-141-0/+23