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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9bfbb7b165ffa1707fd0ade5bbabfc32693f8835dfafb4f938f9f598e706bda |
|
MD5 | 00e60ed5a4a1214b7ed9d540c1f605de |
|
BLAKE2b-256 | 3b46ffe686ed6cb3639d6df98e3b8b2f241ce7607c332933c3cdb42bd932a923 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21e60cc6fe3c77aa7e948e57c63209d61345e98112c2efbaf0f48c3377ebe7ca |
|
MD5 | 52a7e1e90aa62f20d371256930480c10 |
|
BLAKE2b-256 | f0fcfc22268330872ff1cb09bab7e5de8cfe86c88fe3d54eed286e41b2f9fa09 |