Highlight CSS code snippets in guides
Also fix the language identifier for one JavaScript example.
This commit is contained in:
parent
30f4b6266f
commit
ce81714f1c
|
@ -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"
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue