Skip to content
This repository has been archived by the owner on Feb 1, 2019. It is now read-only.
/ aldryn-snippet Public archive

DEPRECATED, this project is no longer maintained, see README for more information.

License

Notifications You must be signed in to change notification settings

aldryn/aldryn-snippet

Repository files navigation

Deprecated

This project has been succeeded by djangocms-snippet, and is no longer supported.

Divio will undertake no further development or maintenance of this project. If you are interested in taking responsibility for this project as its maintainer, please contact us via www.divio.com.

Aldryn Snippet

Build Status Coverage Status

Snippets with code editor and syntax highlighting.

Aldryn Snippet allows you to insert arbitrary code into an HTML document.

Aldryn Snippet is intended as a quick and convenient tool for developers. It is not intended for everyday content management usage.

Warning: as Snippet permits the insertion of arbitrary code, careless use can represent a security risk. Aldryn Snippet must be used appropriately and with caution.

preview

Installation

Install using pip:

$ pip install aldryn-snippet

and add aldryn_snippet to your INSTALLED_APPS. Afterwards, sync your database.

Configuration

  • ALDRYN_SNIPPET_ACE_THEME: Custom Editor Theme (i.e. ace/theme/solarized_dark)
  • ALDRYN_SNIPPET_ACE_MODE: Custom Editor Mode (i.e. ace/mode/html)

Migration from djangocms-snippet

You can also use migrate the snippets from djangocms-snippet to aldryn-snippet using the following command:

$ python manage.py migrate_from_djangocms_snippet

# if you want to keep the old snippets in the admin interface use:
$ python manage.py migrate_from_djangocms_snippet --keep

About

DEPRECATED, this project is no longer maintained, see README for more information.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published