Commit 8e77f067 by benjaoming

add codehilite note in README and a testproject settings module

parent 06aa0e27
......@@ -175,6 +175,7 @@ For now, look in [wiki/conf/settings.py](https://github.com/benjaoming/django-wi
### Other tips
1. **Account handling:** There are simple views that handle login, logout and signup. They are on by default. Make sure to set settings.LOGIN_URL to point to your login page as many wiki views may redirect to a login page.
2. **Syntax highlighting:** Python-Markdown has a pre-shipped codehilite extension which works perfectly, so add something like `WIKI_MARKDOWN_KWARGS = {'extensions': ['footnotes', 'attr_list', 'headerid', 'extra', 'codehilite', ]}` to your settings. Currently, django-wiki shippes with a stylesheet that already has the syntax highlighting CSS rules built-in. Oh, and you need to ensure `pip install pygments` because Pygments is what the codehilite extension is using!
Plugins
------------
......
from testproject.settings import *
from testproject.settings.local import *
# Test codehilite with pygments
WIKI_MARKDOWN_KWARGS = {'extensions': ['codehilite','footnotes', 'attr_list', 'headerid', 'extra', ]}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment