emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard G Riley <rileyrgdev@googlemail.com>
To: Carsten Dominik <dominik@uva.nl>
Cc: org-mode <emacs-orgmode@gnu.org>,
	Richard G Riley <rileyrgdev@googlemail.com>
Subject: Re: exporting src as html
Date: Tue, 15 Jul 2008 04:21:00 +0200	[thread overview]
Message-ID: <rz7ibnkhv7.fsf@richardriley.net> (raw)
In-Reply-To: <442C5935-1F2C-4138-8FE3-0063650F724D@uva.nl> (Carsten Dominik's message of "Mon, 14 Jul 2008 11:31:25 -0700")


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-15  2:21 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 [this message]
2008-07-16 17:42     ` Carsten Dominik
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=rz7ibnkhv7.fsf@richardriley.net \
    --to=rileyrgdev@googlemail.com \
    --cc=dominik@uva.nl \
    --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).