[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Code with line numbers in HTML export
From: |
Saptarshi Guha |
Subject: |
Re: [Orgmode] Code with line numbers in HTML export |
Date: |
Wed, 11 Mar 2009 23:55:01 -0400 |
Thank you, quite excited I tried this small org file
*Title
Some tex
#+BEGIN_SRC emacs-lisp -n
(save-excursion
(goto-char (point-min))
#+END_SRC
Only to get this in the html file (as copied from my browser):
(save-excursion (goto-char (point-min))
The corresponding html is
<p>(save-excursion
(goto-char (point-min))
</p>
if i remove the -n it works - the exported code is formatted but no
line numbers.
(org version 6.09a)
Saptarshi Guha
On Wed, Mar 11, 2009 at 10:29 PM, Nick Dokos <address@hidden> wrote:
> Saptarshi Guha <address@hidden> wrote:
>
>> I assume in the BEGIN_SRC region, I cannot export the code with line
>> numbers, however I
>> came across this
>> .linenr the line number in a code example
>>
>> Does this mean, there is some option to generate line numbers in the
>> exported BEGIN_SRC?
>>
>
> Read the section "Literal Examples" in the org manual: evaluate the
> following form in emacs by pressing C-x C-e after the closing parenthesis
>
> (Info-goto-node "(org)Literal Examples")
>
> or on the web
>
> http://orgmode.org/manual/Literal-examples.html#Literal-examples
>
> HTH,
> Nick
>
>
>
- [Orgmode] Code with line numbers in HTML export, Saptarshi Guha, 2009/03/11
- Re: [Orgmode] Code with line numbers in HTML export, Nick Dokos, 2009/03/11
- Re: [Orgmode] Code with line numbers in HTML export,
Saptarshi Guha <=
- Re: [Orgmode] Code with line numbers in HTML export, Manish, 2009/03/12
- Re: [Orgmode] Code with line numbers in HTML export, Saptarshi Guha, 2009/03/12
- Re: [Orgmode] Code with line numbers in HTML export, Saptarshi Guha, 2009/03/12
- Re: [Orgmode] Code with line numbers in HTML export, Carsten Dominik, 2009/03/12
- Re: [Orgmode] Code with line numbers in HTML export, Saptarshi Guha, 2009/03/12
- Re: [Orgmode] Code with line numbers in HTML export, Sebastian Rose, 2009/03/12
- Re: [Orgmode] Code with line numbers in HTML export, Nick Dokos, 2009/03/12