Just starting to learn org-mode and tangle to write documentation of my Python source codes. I have a several hundred lines long function.

I want to separate this long function into several small code-blocks, and then make explanation what that small parts do. But it seems indentation is not working as expected.

Is it possible to split code into multiple code-blocks?

1 Answer 1


<<noweb>> blocks are indented:

def main():

And then

#+NAME: foo
print("hello, world")

Does this help?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.