emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@uva.nl>
To: Richard G Riley <rileyrgdev@googlemail.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: exporting src as html
Date: Wed, 16 Jul 2008 10:42:59 -0700	[thread overview]
Message-ID: <49DE6F8A-035F-44E1-BE17-9F3DBE5FD203@uva.nl> (raw)
In-Reply-To: <rz7ibnkhv7.fsf@richardriley.net>

Hi,

do any of the HTML gurus on this list have an opinion on the  
additional div for specific
source examples?

Thanks

- Carsten

On Jul 14, 2008, at 7:21 PM, Richard G Riley wrote:

>
> Carsten Dominik <dominik@uva.nl> writes:
>
>> How about adding
>>
>>  .src { overflow:auto }
>>
>> to the CSS style definitions?  Is that what you are looking for?  It
>> seems to me that a scroll bar is better than wrapping, because source
>> code is usually formatted the way it is for a reason.
>>
>> - Carsten
>
> Yes, this is a good idea ( I didnt know of the overflow property to be
> honest).
>
> But I would still suggest one tiny amendment - the export could also  
> wrap
> source code in a src type specific div in addition to the general src
> div. Hence we can easily add CSS information specific to the stated  
> src
> type in addition to the base src class.
>
> e.g
>
> where I have in my org file:
>
> #+INCLUDE: "~/.emacs.d/init.el" src emacs-lisp
>
> the resulting html is
>
> <div class="src">
> <div class="src-emacs-lisp">
> ..
> ..
>
> or something similar which someone more experienced with CSS can
> recommend.
>
> cheers,
>
> r.
>
>>
>> On Jul 12, 2008, at 11:07 AM, Richard G Riley wrote:
>>
>>>
>>> is it possible to tell the exporter to wrap src code? e.g in this
>>>
>>> ,----
>>> | #+HTML: <div id="Content">
>>> | #+INCLUDE: "~/.emacs.d/init.el" src emacs-lisp
>>> | [[../][Back]]
>>> | #+HTML: </div>
>>> `----
>>>
>>> some lines in the htmlized source code extends out beyond the
>>> containing
>>> div.
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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

  reply	other threads:[~2008-07-16 17:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-12 18:07 exporting src as html Richard G Riley
2008-07-14 18:31 ` Carsten Dominik
2008-07-15  2:21   ` Richard G Riley
2008-07-16 17:42     ` Carsten Dominik [this message]
2008-07-17 14:16       ` Jason F. McBrayer
2008-07-17 14:24         ` Richard G Riley
2008-07-17 16:29           ` Carsten Dominik

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=49DE6F8A-035F-44E1-BE17-9F3DBE5FD203@uva.nl \
    --to=dominik@uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=rileyrgdev@googlemail.com \
    /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).