[-- Attachment #1: Type: text/plain, Size: 152 bytes --] Hi, Is there anything I may try to stop shell syntax hihgliting in code blocks being fooled by noweb refs? -- Kind regards, Łukasz Stelmach [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 617 bytes --]
You can set the delimiters used for noweb code.
org-babel-noweb-wrap-end and org-babel-noweb-wrap-end.
I think I set them to @@ in shell code.
Immanuel
On Thu, Nov 25, 2021 at 7:41 PM Łukasz Stelmach <stlman@poczta.fm> wrote:
>
> Hi,
>
> Is there anything I may try to stop shell syntax hihgliting in code
> blocks being fooled by noweb refs?
>
> --
> Kind regards,
> Łukasz Stelmach
--
-- A man must either resolve to point out nothing new or to become a
slave to defend it. -- Sir Isaac Newton
[-- Attachment #1: Type: text/plain, Size: 482 bytes --] Immanuel Litzroth <immanuel.litzroth@gmail.com> writes: > You can set the delimiters used for noweb code. > org-babel-noweb-wrap-end and org-babel-noweb-wrap-end. > > I think I set them to @@ in shell code. I almost always use {{{...}}} via a footer in my org-files: # Local Variables: # org-babel-noweb-wrap-start: "{{{" # org-babel-noweb-wrap-end: "}}}" # End: Best wishes, Arne -- Unpolitisch sein heißt politisch sein, ohne es zu merken. draketo.de [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 1125 bytes --]
Hi Łukasz, One workaround that is fairly reliable is to prefix the names of the blocks to be nowebbed with an &. So #+name: block-name becomes #+name: &block-name. Then you reference it as <<&block-name>> and the heredoc syntax is broken. Best, Tom