Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Improve code syntax example to render better
Browse files Browse the repository at this point in the history
  • Loading branch information
scotte committed Feb 26, 2016
1 parent c2acb2b commit 9694040
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 24 deletions.
21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,18 @@ Code Syntax Highlighting
To use code syntax highlighting, use the following syntax:

```
```python
import random
```python
import random
# Roll the die
roll = random.randint(1,20)
print('You rolled a %d.' % roll)
```
# Roll the die
roll = random.randint(1,20)
print('You rolled a %d.' % roll)
``` #REMOVE
```

Which will look like this in the rendered jekyll output using the default
css/syntax.css provided with this theme (which is the **colorful** theme from
[https://github.com/iwootten/jekyll-syntax](https://github.com/iwootten/jekyll-syntax)):
(Remove #REMOVE from the end of the last line). Which will look like this in
the rendered jekyll output using the default css/syntax.css provided with this
theme (which is the **colorful** theme from [https://github.com/iwootten/jekyll-syntax](https://github.com/iwootten/jekyll-syntax)):

```python
import random
Expand All @@ -125,9 +125,6 @@ print('You rolled a %d.' % roll)
You can, of course, use any theme you wish, see the jekyll and pygments
documentation for more details.

Note that I cheated in the code sample above, using leading spaces to escape
the example - be aware of this if you cut/paste that example.

License
=======

Expand Down
21 changes: 9 additions & 12 deletions _posts/2014-08-22-jekyll-clean-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,18 @@ Code Syntax Highlighting
To use code syntax highlighting, use the following syntax:

```
```python
import random
```python
import random
# Roll the die
roll = random.randint(1,20)
print('You rolled a %d.' % roll)
```
# Roll the die
roll = random.randint(1,20)
print('You rolled a %d.' % roll)
``` #REMOVE
```

Which will look like this in the rendered jekyll output using the default
css/syntax.css provided with this theme (which is the **colorful** theme from
[https://github.com/iwootten/jekyll-syntax](https://github.com/iwootten/jekyll-syntax)):
(Remove #REMOVE from the end of the last line). Which will look like this in
the rendered jekyll output using the default css/syntax.css provided with this
theme (which is the **colorful** theme from [https://github.com/iwootten/jekyll-syntax](https://github.com/iwootten/jekyll-syntax)):

```python
import random
Expand All @@ -130,9 +130,6 @@ print('You rolled a %d.' % roll)
You can, of course, use any theme you wish, see the jekyll and pygments
documentation for more details.

Note that I cheated in the code sample above, using leading spaces to escape
the example - be aware of this if you cut/paste that example.

License
=======

Expand Down

0 comments on commit 9694040

Please sign in to comment.