[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: numbering src blocks in HTML export
From: |
Juan Manuel Macías |
Subject: |
Re: numbering src blocks in HTML export |
Date: |
Tue, 19 Jul 2022 15:28:25 +0000 |
Fraga, Eric writes:
> I really do not understand the last paragraph although it implies that
> org already supports adding the line numbers. My elisp-fu is not up to
> scratch to figure this out from the code unfortunately. Would somebody
> explain what to do? Or should I simply add the CSS code that would do
> it for me?
I usually do it this way:
#+begin_src sh -n :exports code
aa
bb
dd
ee
ff
#+end_src
And you can also indicate the number of the first line, ie -n 20
Best regards,
Juan Manuel