1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/guides/rails_guides
Gerard (Gerry) Caulfield 17a4ec1c28 Add back support for other syntax highlighting
We recently switched to use Rouge for syntax highlighting in the guides,
but in doing so we dropped support for highlighting the following
syntaxes, which are used in the guides:

apache
diff
json
markdown
nginx
scss
xml

There was also css and the "javascript" alias, but @eugeneius already
addressed these two.

They syntaxes were all being converted to "plaintext". This change allows
all the lexers mentioned above as well as any other lexers available
through Rouge.

We have deliberately decided to not support passing rougue custom lexer
options from the code fences. Instead any lexer options that are needed
can be set by adding an entry to the lexer_language case statement. This
should lead to more consistency in formatting and gives us more control
over what Rogue options are allowed.
2020-07-26 18:27:07 +02:00
..
markdown Add back support for other syntax highlighting 2020-07-26 18:27:07 +02:00
generator.rb Auto-correct for delete_prefix/delete_suffix 2020-06-05 12:40:39 +09:00
helpers.rb Cleanup credits related code as it is removed now in PR #32429 2018-04-03 15:19:57 +05:30
kindle.rb Use match? where we don't need MatchData 2019-07-29 14:23:10 +09:00
levenshtein.rb Enable Style/ParenthesesAroundCondition cop 2018-08-19 08:16:21 +09:00
markdown.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00