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:
|
||||
|
||||
~~~
|
||||
var foo = function(x) {
|
||||
return(x + 5);
|
||||
}
|
||||
foo(3)
|
||||
~~~
|
||||
|
||||
And here is the same code with syntax highlighting:
|
||||
Here's a code chunk with syntax highlighting:
|
||||
|
||||
```javascript
|
||||
var foo = function(x) {
|
||||
|
@ -42,12 +33,3 @@ var foo = function(x) {
|
|||
}
|
||||
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