diff options
author | R. Tyler Ballance <tyler@slide.com> | 2009-05-28 15:53:15 -0700 |
---|---|---|
committer | R. Tyler Ballance <tyler@slide.com> | 2009-05-28 15:53:15 -0700 |
commit | 3dbfcf0605cbb0973ae77cb556ec3ae101ddaee6 (patch) | |
tree | 84d7a14c92ebebfac1430802c280f405a641af97 | |
parent | 9f9a217afa835d01a47248a600d42d2829884b5e (diff) | |
download | python-cheetah-3dbfcf0605cbb0973ae77cb556ec3ae101ddaee6.tar.gz |
Remove the #highlight macro for now since it doesn't bloody work
Signed-off-by: R. Tyler Ballance <tyler@slide.com>
-rw-r--r-- | recipes/index.tmpl | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/recipes/index.tmpl b/recipes/index.tmpl index 4013c77..da79f99 100644 --- a/recipes/index.tmpl +++ b/recipes/index.tmpl @@ -40,24 +40,6 @@ from the old Wiki #end def #def generateRecipePage(filepath) - ## Defining a highlighting function to macro-fy - #def _highlightMacro(src) - #from pygments import highlight - #from pygments import lexers - #from pygments import formatters - #set lexer = None - #try - #set lexer = lexers.guess_lexer(src) - #except lexers.ClassNotFound - #set lexer = lexers.PythonLexer() - #end try - - #set formatter = formatters.HtmlFormatter(cssclass='code_highlighter') - #set src = highlight(src, lexer, formatter) - #set css = formatter.get_style_defs('.code_highlighter') - #return '''<style type="text/css"> <!-- %s --> </style> %s''' % (css, src) - #end def - ## Open and read in the .markdown document #set fd = open('%s%s' % ($ExecuteContentPath, filepath), 'r') #set content = fd.readlines() @@ -77,8 +59,7 @@ from the old Wiki %s #end def ''' % (''.join(content)), - searchList=[{'PageName' : filepath.replace('.markdown', '')}], - compilerSettings={'macroDirectives' : {'highlight' : _highlightMacro}}) + searchList=[{'PageName' : filepath.replace('.markdown', '')}]) ## Write the results of the template's execution to a .html file #set fd = open('%s%s' % ($ExecuteContentPath, filepath.replace('.markdown', '.html')), 'w') |