|
From: | David Rogoff |
Subject: | Re: [O] macro replacement in code block? |
Date: | Tue, 31 Oct 2017 20:21:44 -0700 |
Pretty simple text substitution. Something like this: #+MACRO: SEC_HDR1 // --------------------------- #+MACRO: SEC_HDR2 // #+MACRO: SEC_TITLE This section declares local types and constants * File 1 ** Section 1: {{{SEC_TITLE}}} #+BEGIN_SRC verilog {{{SEC_HDR1}}} {{{SEC_HDR2}}} {{{SEC_TITLE}}} parameter A = 1; #+END_SRC So SEC_TITLE expands in the headline and also as a comment in the tangled verilog code. It would be really great to be able to embed newlines in the macro to it could be one line / macro in the src block.
Thanks - I’ll have to look into noweb. I’m not familiar with it. David |
[Prev in Thread] | Current Thread | [Next in Thread] |