From: Saptarshi Guha <saptarshi.guha@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Code with line numbers in HTML export
Date: Thu, 12 Mar 2009 09:41:20 -0400 [thread overview]
Message-ID: <1e7471d50903120641r1ff01628p90c06eb13cdf442d@mail.gmail.com> (raw)
In-Reply-To: <CBC3D9A8-FD8D-4786-AC4B-474775F44904@uva.nl>
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
Saptarshi Guha
On Thu, Mar 12, 2009 at 3:14 AM, Carsten Dominik <dominik@science.uva.nl> wrote:
>
> 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 (rectangle
>> delete) and all, still it would be nice on the reader.
>
> Hi,
>
> how does one select a column in an HTML table?
> When I try this, it is always entire rows that are being selected,
> so I would not know how to make a table where this works correctly.
>
> - Carsten
>
>>
>> Thanks for amazing org.
>> Saptarshi Guha
>>
>>
>>
>> On Thu, Mar 12, 2009 at 12:28 AM, Saptarshi Guha
>> <saptarshi.guha@gmail.com> wrote:
>>>
>>> Ok. I'll update.
>>> Thanks
>>>
>>> Saptarshi Guha
>>>
>>>
>>>
>>> On Thu, Mar 12, 2009 at 12:25 AM, Manish <mailtomanish.sharma@gmail.com>
>>> 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-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)
>>>>
>>>> Line numbers and references were added in 6.17.
>>>>
>>>> --
>>>> Manish
>>>>
>>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
next prev parent reply other threads:[~2009-03-12 13:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-12 0:37 Code with line numbers in HTML export Saptarshi Guha
2009-03-12 2:29 ` Nick Dokos
2009-03-12 3:55 ` Saptarshi Guha
2009-03-12 4:25 ` Manish
2009-03-12 4:28 ` Saptarshi Guha
2009-03-12 4:41 ` Saptarshi Guha
2009-03-12 7:14 ` Carsten Dominik
2009-03-12 13:41 ` Saptarshi Guha [this message]
2009-03-12 15:03 ` Sebastian Rose
2009-03-12 14:03 ` Nick Dokos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1e7471d50903120641r1ff01628p90c06eb13cdf442d@mail.gmail.com \
--to=saptarshi.guha@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).