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
-
Install with pip
pip install djangocms-code-prettify
-
Add
djangocms_code_prettify
to INSTALLED_APPS -
Run migrations
python manage.py migrate
Usage
See notes here:
- https://github.com/google/code-prettify
- https://github.com/google/code-prettify/blob/master/docs/getting_started.md
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for djangocms-code-prettify-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9bfbb7b165ffa1707fd0ade5bbabfc32693f8835dfafb4f938f9f598e706bda |
|
MD5 | 00e60ed5a4a1214b7ed9d540c1f605de |
|
BLAKE2b-256 | 3b46ffe686ed6cb3639d6df98e3b8b2f241ce7607c332933c3cdb42bd932a923 |
Close
Hashes for djangocms_code_prettify-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21e60cc6fe3c77aa7e948e57c63209d61345e98112c2efbaf0f48c3377ebe7ca |
|
MD5 | 52a7e1e90aa62f20d371256930480c10 |
|
BLAKE2b-256 | f0fcfc22268330872ff1cb09bab7e5de8cfe86c88fe3d54eed286e41b2f9fa09 |