Re: [Orgmode] Code with line numbers in HTML export

2009-03-12 Thread Sebastian Rose
It's not just putting line numbers and code into two elements. Putting line-numbers and code into different columns works and is done everywhere, but in Org's this will not be bullet-proof. This depends heavily on styles use for the CSS-classes in the code and the line-numbers. If one defines b

Re: [Orgmode] Code with line numbers in HTML export

2009-03-12 Thread Nick Dokos
Saptarshi Guha wrote: > 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))

Re: [Orgmode] Code with line numbers in HTML export

2009-03-12 Thread Saptarshi Guha
Hello, I got this idea from Google code. An example can be found here (chosen at random) http://code.google.com/p/compcache/source/browse/trunk/compcache.c The code is displayed as a table (albeit with lots of css markup helping it) yet the source column is selectable. Hope it helps. Thanks Sap

Re: [Orgmode] Code with line numbers in HTML export

2009-03-12 Thread Carsten Dominik
On Mar 12, 2009, at 5:41 AM, Saptarshi Guha wrote: Lovely. One last question, is there a way to place the source in a table of two cols one for the col numbers and one for the code? So that the reader may easily select the code. The emacs user does not have a problem what with C-x r k (rectangl

Re: [Orgmode] Code with line numbers in HTML export

2009-03-11 Thread Saptarshi Guha
Lovely. One last question, is there a way to place the source in a table of two cols one for the col numbers and one for the code? So that the reader may easily select the code. The emacs user does not have a problem what with C-x r k (rectangle delete) and all, still it would be nice on the reader

Re: [Orgmode] Code with line numbers in HTML export

2009-03-11 Thread Saptarshi Guha
Ok. I'll update. Thanks Saptarshi Guha On Thu, Mar 12, 2009 at 12:25 AM, Manish wrote: > On Thu, Mar 12, 2009 at 9:25 AM, Saptarshi Guha wrote: >> Thank you, quite excited I tried this small org file >> *Title >> Some tex >> >> #+BEGIN_SRC emacs-lisp -n >> (save-excursion >> (goto-char (point-

Re: [Orgmode] Code with line numbers in HTML export

2009-03-11 Thread Manish
On Thu, Mar 12, 2009 at 9:25 AM, Saptarshi Guha wrote: > 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-excurs

Re: [Orgmode] Code with line numbers in HTML export

2009-03-11 Thread Saptarshi Guha
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 (save-excursion (goto

Re: [Orgmode] Code with line numbers in HTML export

2009-03-11 Thread Nick Dokos
Saptarshi Guha wrote: > I assume in the BEGIN_SRC region, I cannot export the code with line > numbers, however I > came across this > .linenrthe line number in a code example > > Does this mean, there is some option to generate line numbers in the > exported BEGIN_SRC? > Read the

[Orgmode] Code with line numbers in HTML export

2009-03-11 Thread Saptarshi Guha
Hello, I assume in the BEGIN_SRC region, I cannot export the code with line numbers, however I came across this .linenrthe line number in a code example Does this mean, there is some option to generate line numbers in the exported BEGIN_SRC? Thanks for your time Saptarshi Guha ___