From 3dbfcf0605cbb0973ae77cb556ec3ae101ddaee6 Mon Sep 17 00:00:00 2001 From: "R. Tyler Ballance" Date: Thu, 28 May 2009 15:53:15 -0700 Subject: Remove the #highlight macro for now since it doesn't bloody work Signed-off-by: R. Tyler Ballance --- recipes/index.tmpl | 21 +-------------------- 1 file changed, 1 insertion(+), 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 ''' %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') -- cgit v1.2.1