https://github.com/timonweb/tweaked-pygments
https://github.com/timonweb/tweaked-pygments
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/timonweb/tweaked-pygments
- Owner: timonweb
- Created: 2015-03-24T12:27:06.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-24T12:42:49.000Z (over 11 years ago)
- Last Synced: 2025-10-11T08:48:27.015Z (10 months ago)
- Language: Python
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tweaked pygments for Django
Tweaks django-pygments templatetag to not to strip **p** and **br** tags from code snippets.
# Installation
* Put tweaked_pygments under your path
* Add **tweaked_pygments** to INSTALLED_APPS
# Usage
{% load tweaked_pygmentify %}
* Instead of `{% pygments %}` and `{% endpygments %}`, use `{% tweaked_pygments %}` and `{% endtweaked_pygments %}`
* Instead of `pygmentify` filter use `tweaked_pygmentify`
* Instead of `pygmentify_inline` filter use `tweaked_pygmentify_inline`