Update code samples with line numbers
Update code samples with line numbers
This commit is contained in:
parent
15519ca776
commit
f4ce4ee357
1 changed files with 1 additions and 19 deletions
|
@ -25,16 +25,7 @@ How about a yummy crepe?
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
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…
Add table
Add a link
Reference in a new issue