From ce81714f1c99d4ff35a32c64b209277f710362a0 Mon Sep 17 00:00:00 2001 From: Eugene Kenny Date: Mon, 13 Jul 2020 01:28:35 +0100 Subject: [PATCH] Highlight CSS code snippets in guides Also fix the language identifier for one JavaScript example. --- guides/rails_guides/markdown/renderer.rb | 2 +- guides/source/api_app.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/rails_guides/markdown/renderer.rb b/guides/rails_guides/markdown/renderer.rb index 64475266cb..497e8076a6 100644 --- a/guides/rails_guides/markdown/renderer.rb +++ b/guides/rails_guides/markdown/renderer.rb @@ -68,7 +68,7 @@ module RailsGuides def lexer_language(code_type) case code_type - when "js", "html", "ruby", "sql", "yaml" + when "css", "js", "html", "ruby", "sql", "yaml" code_type when "erb", "html+erb" "erb" diff --git a/guides/source/api_app.md b/guides/source/api_app.md index 06b84a7bfc..19ba7c5dbd 100644 --- a/guides/source/api_app.md +++ b/guides/source/api_app.md @@ -315,7 +315,7 @@ and specify the `Content-Type` as `application/json`. Here's an example in jQuery: -```javascript +```js jQuery.ajax({ type: 'POST', url: '/people',