We recommend to copy as much code as possible directly from the source files:
@@@CODE path/to/file
@@@CODE path/to/file fromto: start-regex@end-regex
For example, copying a code snippet starting with def solver(
and
ending with (line not included) def next(x, y,
is specified by
start and end regular expressions:
@@@CODE src/somefile.py fromto: def solver\(@def next\(x,\s*y,