Format babel code block for export?

2021-06-01 Thread Galaxy Being
I have this #+begin_src haskell :results silent :exports code :{ maximum'' :: (Ord a) => [a] -> a maximum'' = foldl1 (\x acc -> if x > acc then x else acc) :} #+end_src but on export to HTML (or LaTex) I'd like to suppress the :{ and :} to just show the code maximum'' :: (Ord a) => [a] -> a maxi

Re: Format babel code block for export?

2021-06-02 Thread Juan Manuel MacĂ­as
Hi Lawrence, You can use multiple blocks and noweb reference syntax (https://orgmode.org/manual/Noweb-Reference-Syntax.html): #+NAME:block1 #+begin_src haskell :results silent :exports none :{ #+end_src #+NAME:block2 #+begin_src haskell :results silent :exports none maximum'' :: (Ord a) => [a] -