Skip to main content

Allows you to add Google Prettify formatted code as plugin text

Project description

DjangoCMS Code Prettify

An extension for Django CMS that adds the Google Code Prettify js for text fields.

Installation

  1. Install with pip pip install djangocms-code-prettify

  2. Add djangocms_code_prettify to INSTALLED_APPS

  3. Run migrations python manage.py migrate

Usage

See notes here:

After installation simply add the plugins to the page.

Notes

Google Code Prettify can only load one style per page. This is due to simple structure and CSS that applies to generic Code objects.

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

djangocms-code-prettify-1.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

djangocms_code_prettify-1.1.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file djangocms-code-prettify-1.1.0.tar.gz.

File metadata

  • Download URL: djangocms-code-prettify-1.1.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.2

File hashes

Hashes for djangocms-code-prettify-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c9bfbb7b165ffa1707fd0ade5bbabfc32693f8835dfafb4f938f9f598e706bda
MD5 00e60ed5a4a1214b7ed9d540c1f605de
BLAKE2b-256 3b46ffe686ed6cb3639d6df98e3b8b2f241ce7607c332933c3cdb42bd932a923

See more details on using hashes here.

File details

Details for the file djangocms_code_prettify-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: djangocms_code_prettify-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.2

File hashes

Hashes for djangocms_code_prettify-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21e60cc6fe3c77aa7e948e57c63209d61345e98112c2efbaf0f48c3377ebe7ca
MD5 52a7e1e90aa62f20d371256930480c10
BLAKE2b-256 f0fcfc22268330872ff1cb09bab7e5de8cfe86c88fe3d54eed286e41b2f9fa09

See more details on using hashes here.

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