允许您将google prettify格式的代码添加为插件文本
djangocms-code-prettif的Python项目详细描述
django cms的一个扩展,它为文本字段添加了google代码prettify js。
安装
- 使用pippip install djangocms-code-prettify 安装
- 将djangocms_code_prettify添加到已安装的应用程序中
- 运行迁移python manage.py migrate
用法
请参见此处的注释:
- https://github.com/google/code-prettify
- https://github.com/google/code-prettify/blob/master/docs/getting_started.md
安装后,只需将插件添加到页面。