emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* noweb and shell heredocs
@ 2021-11-25 18:31 Łukasz Stelmach
  2021-11-25 21:37 ` Immanuel Litzroth
  2021-11-30 23:28 ` Tom Gillespie
  0 siblings, 2 replies; 4+ messages in thread
From: Łukasz Stelmach @ 2021-11-25 18:31 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: noweb and shell heredocs
  2021-11-25 18:31 noweb and shell heredocs Łukasz Stelmach
@ 2021-11-25 21:37 ` Immanuel Litzroth
  2021-11-30 22:58   ` Dr. Arne Babenhauserheide
  2021-11-30 23:28 ` Tom Gillespie
  1 sibling, 1 reply; 4+ messages in thread
From: Immanuel Litzroth @ 2021-11-25 21:37 UTC (permalink / raw)
  To: Łukasz Stelmach; +Cc: emacs-orgmode Mailinglist

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: noweb and shell heredocs
  2021-11-25 21:37 ` Immanuel Litzroth
@ 2021-11-30 22:58   ` Dr. Arne Babenhauserheide
  0 siblings, 0 replies; 4+ messages in thread
From: Dr. Arne Babenhauserheide @ 2021-11-30 22:58 UTC (permalink / raw)
  To: Immanuel Litzroth; +Cc: emacs-orgmode, Łukasz Stelmach

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: noweb and shell heredocs
  2021-11-25 18:31 noweb and shell heredocs Łukasz Stelmach
  2021-11-25 21:37 ` Immanuel Litzroth
@ 2021-11-30 23:28 ` Tom Gillespie
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Gillespie @ 2021-11-30 23:28 UTC (permalink / raw)
  To: Łukasz Stelmach; +Cc: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-30 23:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-25 18:31 noweb and shell heredocs Łukasz Stelmach
2021-11-25 21:37 ` Immanuel Litzroth
2021-11-30 22:58   ` Dr. Arne Babenhauserheide
2021-11-30 23:28 ` Tom Gillespie

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).