diff options
author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2012-05-09 13:42:58 +0000 |
---|---|---|
committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2012-05-09 13:42:58 +0000 |
commit | 5aa46e8d12bd92b7d541ddd22fa81a8164deb46f (patch) | |
tree | 3f6b49db491a209d70ca0107387ff8da0bacd98b /sandbox/code-block-directive/rst2html-highlight.py | |
parent | a37d1d928b4a49c118bb17c0d49b09f1fc1e685b (diff) | |
download | docutils-5aa46e8d12bd92b7d541ddd22fa81a8164deb46f.tar.gz |
Clean up code-block-directive sandbox project.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7430 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/code-block-directive/rst2html-highlight.py')
-rwxr-xr-x | sandbox/code-block-directive/rst2html-highlight.py | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/sandbox/code-block-directive/rst2html-highlight.py b/sandbox/code-block-directive/rst2html-highlight.py deleted file mode 100755 index 5924da7cf..000000000 --- a/sandbox/code-block-directive/rst2html-highlight.py +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/python -# coding: utf-8 - -# rst2html-highlight -# ================== -# -# Docutils front-end with syntax highlight. -# -# :Author: David Goodger, Georg Brandl, Günter Milde -# :Date: $Date: 2008-05-22 08:42:52 +0200 (Do, 22. Mai 2008) $ -# :Copyright: This module has been placed in the public domain. -# -# This is a merge of the docutils_ `rst2html` front end with an extension -# suggestion by Felix Wiemann. -# -# :: - -""" -A front end to docutils, producing HTML with syntax colouring using pygments - -Generates (X)HTML documents from standalone reStructuredText sources. Uses -`pygments` to parse and mark up the content of ``.. code::` directives. -Needs an adapted stylesheet -""" - -# Requirements -# ------------ -# -# :: - -try: - import locale - locale.setlocale(locale.LC_ALL, '') -except: - pass - -from docutils.core import publish_cmdline, default_description - -# The `pygments_code_block_directive`_ module defines and registers a new -# directive `code` that uses the `pygments`_ source highlighter to -# render code in color:: - -import pygments_code_block_directive - -# Call the docutils publisher to render the input as html:: - -description = __doc__ + default_description -publish_cmdline(writer_name='html', description=description) - -# .. _docutils: http://docutils.sf.net/ -# .. _pygments_code_block_directive: pygments_code_block_directive.py -# .. _pygments: http://pygments.org/ -# .. _Using Pygments in ReST documents: http://pygments.org/docs/rstdirective/ |