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
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))
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
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
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
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-
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
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
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
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
___
10 matches
Mail list logo