ede/doc/asciidoc/filters/code-filter-test.txt
2008-09-04 10:02:41 +00:00

16 lines
337 B
Plaintext

Code Filter Test
================
[python]
code~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
''' A multi-line
comment.'''
def sub_word(mo):
''' Single line comment.'''
word = mo.group('word') # Inline comment
if word in keywords[language]:
return quote + word + quote
else:
return word
code~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~