Highlight CSS code snippets in guides

Also fix the language identifier for one JavaScript example.
This commit is contained in:
Eugene Kenny 2020-07-13 01:28:35 +01:00
parent 30f4b6266f
commit ce81714f1c
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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',