Skip to main content

A Django template filter application for highlighting code with Pygments in templates

Project description

PyPI version Build status

Django Pygmentify is a Django template filter application for highlighting code with Pygments in templates.

It is an alternative to Django Pygments, which hasn’t been updated in several years.

Install

$ pip install django-pygmentify

Add to settings.py.

INSTALLED_APPS = [
    # ...
    'pygmentify',
]

Usage

{% load pygmentify_tags %}

<link rel="stylesheet" href="{% pygmentify_css %}">

{% pygmentify %}
<pre class="python">
    print('Hello, world!')
</pre>
{% endpygmentify %}

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

django-pygmentify-0.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file django-pygmentify-0.1.tar.gz.

File metadata

File hashes

Hashes for django-pygmentify-0.1.tar.gz
Algorithm Hash digest
SHA256 21036f416cdcd1c922a8e90198d54e38c83610f0112d124df22f81974b040e2e
MD5 55cceda3b3adb23000633be33c4f9fa6
BLAKE2b-256 60c63a570eac58e6917e3e3d849a907ddb2e92e01de5f85bbbe65d5ca2ba8ecb

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page