From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard G Riley Subject: Re: exporting src as html Date: Tue, 15 Jul 2008 04:21:00 +0200 Message-ID: References: <6atzev3rie.fsf@richardriley.net> <442C5935-1F2C-4138-8FE3-0063650F724D@uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIaA8-0007gp-B4 for emacs-orgmode@gnu.org; Mon, 14 Jul 2008 22:21:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIaA6-0007g5-O6 for emacs-orgmode@gnu.org; Mon, 14 Jul 2008 22:21:07 -0400 Received: from [199.232.76.173] (port=41605 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIaA6-0007fy-F4 for emacs-orgmode@gnu.org; Mon, 14 Jul 2008 22:21:06 -0400 Received: from fg-out-1718.google.com ([72.14.220.153]:16559) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KIaA6-0008PG-1o for emacs-orgmode@gnu.org; Mon, 14 Jul 2008 22:21:06 -0400 Received: by fg-out-1718.google.com with SMTP id l26so2392056fgb.30 for ; Mon, 14 Jul 2008 19:21:04 -0700 (PDT) In-Reply-To: <442C5935-1F2C-4138-8FE3-0063650F724D@uva.nl> (Carsten Dominik's message of "Mon, 14 Jul 2008 11:31:25 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: org-mode , Richard G Riley Carsten Dominik 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
.. .. 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:
>> | #+INCLUDE: "~/.emacs.d/init.el" src emacs-lisp >> | [[../][Back]] >> | #+HTML:
>> `---- >> >> 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