Update code samples with line numbers
Update code samples with line numbers
This commit is contained in:
parent
15519ca776
commit
f4ce4ee357
@ -25,16 +25,7 @@ How about a yummy crepe?
|
|||||||
|
|
||||||
![Crepe](http://s3-media3.fl.yelpcdn.com/bphoto/cQ1Yoa75m2yUFFbY2xwuqw/348s.jpg)
|
![Crepe](http://s3-media3.fl.yelpcdn.com/bphoto/cQ1Yoa75m2yUFFbY2xwuqw/348s.jpg)
|
||||||
|
|
||||||
Here's a code chunk:
|
Here's a code chunk with syntax highlighting:
|
||||||
|
|
||||||
~~~
|
|
||||||
var foo = function(x) {
|
|
||||||
return(x + 5);
|
|
||||||
}
|
|
||||||
foo(3)
|
|
||||||
~~~
|
|
||||||
|
|
||||||
And here is the same code with syntax highlighting:
|
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var foo = function(x) {
|
var foo = function(x) {
|
||||||
@ -42,12 +33,3 @@ var foo = function(x) {
|
|||||||
}
|
}
|
||||||
foo(3)
|
foo(3)
|
||||||
```
|
```
|
||||||
|
|
||||||
And here is the same code yet again but with line numbers:
|
|
||||||
|
|
||||||
{{< highlight python linenos >}}
|
|
||||||
var foo = function(x) {
|
|
||||||
return(x + 5);
|
|
||||||
}
|
|
||||||
foo(3)
|
|
||||||
{{</ highlight >}}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user