DjangoCMS syntax highlighting plugin allowing for easy integration with SyntaxHighlighter.
Project description
cmsplugin_syntax_highlight adds integration with SyntaxHighlighter at http://alexgorbatchev.com/SyntaxHighlighter/.
Features:
Use as an individual plugin or use in text plugins.
Auto-discovered custom templates used to select programming language and modeled after template handling in cmsplugin_gallery under https://github.com/centralniak/cmsplugin_gallery
Contributions and comments are welcome using Github at: http://github.com/nmurrin/cmsplugin_syntax_highlight
cmsplugin_syntax_highlight requires SyntaxHighlighter available at http://alexgorbatchev.com/SyntaxHighlighter/.
Installation
pip install cmsplugin_syntax_highlight
Add ‘cmsplugin_syntex_highlight’ to INSTALLED_APPS
Run syncdb
Configuration
Indicate the location of SyntaxHighlighter in your settings file with SYNTAX_HIGHLIGHTER = ‘/media/syntaxhighlighter/’. Indicate the actual location in your project.
There are templates included for the programming languages that I commonly use. If you need additional languages or just want to change the template then create a cmsplugin_syntax_highlight directory in your templates directory and add templates. They will be ‘discovered’ by the plugin.
Bugs and Contribution
Please use Github to report bugs, feature requests and submit your code: http://github.com/nmurrin/cmsplugin_syntax_highlight
- author:
Norm Murrin
- date:
2013/05/08
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for cmsplugin_syntax_highlight-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c40b505ff4b6bf6f6dc092141020ea218e788d32c5fa5234439bc843905d5e3 |
|
MD5 | 4e04dbd2dc232ac3a23ef3ffd27909aa |
|
BLAKE2b-256 | d9fe3487861320b40a6cd35cb138a028ca41d891c7998c71b5c3218abe9cebb3 |