Adding functionality for fetching code from github

hack for 1.8.7

Don't miss test_markup's relative require

need some food now
This commit is contained in:
Henrik
2012-09-04 22:25:16 +02:00
committed by bootstraponline
parent 0cf0fad50e
commit 749b5a5ff8
8 changed files with 159 additions and 7 deletions
+21
View File
@@ -334,6 +334,27 @@ then that whitespace will be ignored (this makes the blocks easier to read in pl
The block must end with three backticks indented at the same level than the opening
backticks.
### GITHUB SYNTAX HIGHLIGHTING
As an extra feature, you can syntax highlight a file from your repository, allowing
you keep some of your sample code in the main repository. The code-snippet is
updated when the wiki is rebuilt. You include github code like this:
```html:github/gollum/master/test/file_view/1_file.txt```
This will make the builder look at the **github user**, in the **gollum project**,
in the **master branch**, at path **test/file_view/1_file.txt**. It will be
rewritten to:
```html
<ol class="tree">
<li class="file"><a href="0">0</a></li>
</ol>
```
Which will be parsed as HTML code during the Pygments run, and thereby coloured
appropriately.
## MATHEMATICAL EQUATIONS