summaryrefslogtreecommitdiffstats
path: root/lib/redmine/syntax_highlighting.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix RuboCop offense Lint/MissingSuper (#36919).Go MAEDA2023-03-241-0/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22147 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/EmptyLinesAroundModuleBody in ↵Toshi MARUYAMA2019-11-211-1/+0
| | | | | | lib/redmine/syntax_highlighting.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19130 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/EmptyLinesAroundAccessModifier in ↵Toshi MARUYAMA2019-11-091-0/+1
| | | | | | lib/redmine/syntax_highlighting.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19048 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Attachment preview does not work for some source files such as JavaScript ↵Go MAEDA2019-05-041-1/+13
| | | | | | | | | and Go (#29259). Patch by Go MAEDA with the help of Stephan Wenzel's contribution. git-svn-id: http://svn.redmine.org/redmine/trunk@18122 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Redmine::SyntaxHighlighting.highlight_by_filename may not be able to ↵Go MAEDA2019-05-031-1/+1
| | | | | | | | | determine the language by filename alone (#31285). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18118 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable frozen_string_literal for some files under app and lib directory ↵Go MAEDA2019-03-161-1/+1
| | | | | | (#26561). git-svn-id: http://svn.redmine.org/redmine/trunk@17977 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Line height is too large when previewing files with syntax highlighting if ↵Go MAEDA2019-02-031-0/+7
| | | | | | | | | the line terminators are CRLF (#30434). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17847 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Syntax highlighter: replace CodeRay with Rouge (#24681).Jean-Philippe Lang2018-09-291-18/+41
| | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17532 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use stored ref. to array holding supported languages symbols via a constant ↵Jean-Philippe Lang2017-06-061-2/+3
| | | | | | | | (#26055). Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@16624 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Pull-up retrieve_supported_languages private class method (#26055).Jean-Philippe Lang2017-06-061-4/+10
| | | | | | Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@16623 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove internal CodeRay scanners (#26055).Jean-Philippe Lang2017-06-061-1/+2
| | | | | | Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@16622 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Highlight language aliases are no more supported (#25634).Jean-Philippe Lang2017-05-271-1/+4
| | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@16568 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Helper methods to find out if a given language is supported (#25503).Jean-Philippe Lang2017-04-061-0/+16
| | | | | | Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@16501 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rescue syntax highlighter exceptions.Jean-Philippe Lang2013-12-231-1/+12
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12451 e93f8b46-1217-0410-a6f0-8f06a7374b81
* prevent coderay "warning: already initialized constant" on Ruby 1.8.7 (#13692)Toshi MARUYAMA2013-06-041-1/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11925 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-121-1/+1
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed line numbers from syntax highlightment.Jean-Philippe Lang2012-07-291-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10131 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2012-05-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updated CodeRay to 1.0.6.Etienne Massip2012-04-121-1/+1
| | | | | | Fixed multiline comments highlighting issue in file view (#7495). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9389 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update CodeRay version to 1.0 final (#4264).Etienne Massip2011-10-081-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7618 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from lib/redmine/syntax_highlighting.rbToshi MARUYAMA2011-09-201-9/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7409 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes diff highlighting (#5199).Jean-Philippe Lang2010-03-281-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3619 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Extract CodeRay calls to Redmine::SyntaxHighlighting (#2985).Jean-Philippe Lang2010-03-141-0/+56
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3584 e93f8b46-1217-0410-a6f0-8f06a7374b81