Skip to content

Commit

Permalink
Add syntax highlighting instructions to README
Browse files Browse the repository at this point in the history
  • Loading branch information
shovanch authored Sep 23, 2017
1 parent 114c3c6 commit e135f91
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,32 @@ Campers will likely use Guide articles as a quick reference to look up syntax. A

Here are specific formatting guidelines for any code:

- Use two spaces to indent
- JavaScript statements end with a semicolon
- Use double quotes where applicable
- Show generally-accepted best practices, particularly for accessibility
- Comments made should have a space between the comment characters and the comment themselves

`// Fix this line`
- To use syntax highlighting in code blocks, indicate the language after starting ```
```
```html
<div class='awesome' id='more-awesome'>
<p>This is text in html</p>
</div>
```
```javascript
function logTheThings(stuff) {
console.log(stuff);
}
```
```css
.awesome {
background-color: #BADA55;
}
```
```

### Adding images to articles

Expand Down

0 comments on commit e135f91

Please sign in to comment.