This is the official manual for the latest Org-mode release.

Table of Contents

Next: , Previous: session, Up: Specific header arguments


14.8.2.15 :noweb

The :noweb header argument controls expansion of “noweb” syntax references (see Noweb reference syntax). Expansions occur when source code blocks are evaluated, tangled, or exported.

Noweb prefix lines

Noweb insertions now honor prefix characters that appear before <<reference>>. This behavior is illustrated in the following example. Because the <<example>> noweb reference appears behind the SQL comment syntax, each line of the expanded noweb reference will be commented.

This code block:

     -- <<example>>

expands to:

     -- this is the
     -- multi-line body of example

Since this change will not affect noweb replacement text without newlines in them, inline noweb references are acceptable.