8000 GitHub - indexofire/cmsplugin_rst: A django-cms-2.0 plugin to support write ReStructured Text by MarkItUp Editor
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

indexofire/cmsplugin_rst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a plugin of django-cms-2.0 for adding restructured text into your pages. It's based on BSD License, so please share it as what you want.

Requirement:

It supports pygment code highlight. You need to install pygment.

Install:

  1. copy media/cmsplugin_rst and media/markitup folders to your media folder
  2. add cmsplugin_rst into INSTALLED_APP of your settings
  3. run ./manage.py syncdb

Usage:

.. code:: python
   :linenos:

   import os, path
   from django.conf import settings

   class MyNewCode(object):
       pass

ps: if you don't like the line numbers, just get rid of :linenos:. from version 0.0.2 alaph, editor support prompt a dialog to input your code. So you don't need to write .. code:: python every time.

If you want to custom style, change cmsplugin_rst.css to fit for your site. Also you could write your own directives and put them in folder directives.

About

A django-cms-2.0 plugin to support write ReStructured Text by MarkItUp Editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0