Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move :plain option to Highlight class | Mark Chao | 2018-10-30 | 1 | -0/+3 |
| | | | | | | This is to DRY the repeated file size check. Move spec and constants to Highlight | ||||
* | Make Highlight accept language param | Mark Chao | 2018-10-30 | 1 | -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/*.rb | gfyoung | 2018-10-22 | 1 | -0/+2 |
| | |||||
* | Fix syntax highlight taking too long | Mark Chao | 2018-09-03 | 1 | -1/+13 |
| | | | | Use Timeout to switch to plain rendering | ||||
* | Enable Style/DotPosition Rubocop :cop: | Grzegorz Bizon | 2017-06-21 | 1 | -2/+2 |
| | |||||
* | Use Diff::File blob methods from diff highlighterdm-highlight-diff-file-blob | Douwe Maan | 2017-06-08 | 1 | -8/+0 |
| | |||||
* | Blob#load_all_data! doesn’t need an argumentblob-load-all-data | Douwe Maan | 2017-06-07 | 1 | -1/+1 |
| | |||||
* | Autolink package names in Gemfile | Douwe Maan | 2017-05-10 | 1 | -10/+27 |
| | |||||
* | Copy code as GFM from diffs, blobs and GFM code blocks | Douwe Maan | 2017-03-14 | 1 | -2/+2 |
| | |||||
* | use the proper variable names o_O | http://jneen.net/ | 2016-07-14 | 1 | -2/+2 |
| | |||||
* | style: factor out `@lexer` into a method | http://jneen.net/ | 2016-07-14 | 1 | -9/+13 |
| | |||||
* | fix Gitlab::Highlight#initializer bugs from rebase | http://jneen.net/ | 2016-07-14 | 1 | -1/+2 |
| | |||||
* | use the local lexer variable to respect plain: ... | http://jneen.net/ | 2016-07-14 | 1 | -1/+1 |
| | |||||
* | inline #rouge_formatter | http://jneen.net/ | 2016-07-14 | 1 | -6/+2 |
| | |||||
* | use the new token_lines interface to format lines | http://jneen.net/ | 2016-07-14 | 1 | -4/+1 |
| | |||||
* | kill the :cssclass option | http://jneen.net/ | 2016-07-14 | 1 | -1/+0 |
| | |||||
* | kill the nowrap option | http://jneen.net/ | 2016-07-14 | 1 | -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 option | http://jneen.net/ | 2016-07-14 | 1 | -1/+0 |
| | |||||
* | do this thing in a clearer way | http://jneen.net/ | 2016-07-14 | 1 | -3/+6 |
| | |||||
* | support cgi style options, such as erb?parent=json | http://jneen.net/ | 2016-06-27 | 1 | -3/+3 |
| | |||||
* | make #custom_language private | http://jneen.net/ | 2016-06-27 | 1 | -8/+8 |
| | |||||
* | appease rubocop | http://jneen.net/ | 2016-06-27 | 1 | -2/+1 |
| | |||||
* | add custom highlighting via .gitattributes | http://jneen.net/ | 2016-06-27 | 1 | -5/+23 |
| | | | | paired with @stanhu | ||||
* | Properly handle bigger files | Zeger-Jan van de Weg | 2016-04-28 | 1 | -4/+9 |
| | |||||
* | Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into lazy-blobs | Jacob Vosmaer | 2016-02-01 | 1 | -0/+1 |
| | |||||
* | Don't crash when file can't be highlighted | Douwe Maan | 2016-01-19 | 1 | -9/+3 |
| | |||||
* | Refactor Gitlab::Highlight and fix tests | Douwe Maan | 2016-01-19 | 1 | -6/+20 |
| | |||||
* | Add inline diff markers in highlighted diffs. | Douwe Maan | 2016-01-14 | 1 | -0/+7 |
| | |||||
* | Remove duplication around highlighting. | Douwe Maan | 2016-01-14 | 1 | -0/+23 |