예제 #1
0
파일: page.py 프로젝트: shimpe/frescobaldi
 def code_start(self, code, specifier=None):
     if specifier == "lilypond":
         import highlight2html
         self._html.append(highlight2html.html_text(code, full_html=False))
     else:
         self.tag('code')
         self.tag('pre')
         self.text(code)
예제 #2
0
 def code_start(self, code, specifier=None):
     if specifier == "lilypond":
         import highlight2html
         self._html.append(highlight2html.html_text(code, full_html=False))
     else:
         self.tag('code')
         self.tag('pre')
         self.text(code)