From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: exporting src as html Date: Wed, 16 Jul 2008 10:42:59 -0700 Message-ID: <49DE6F8A-035F-44E1-BE17-9F3DBE5FD203@uva.nl> References: <6atzev3rie.fsf@richardriley.net> <442C5935-1F2C-4138-8FE3-0063650F724D@uva.nl> Mime-Version: 1.0 (Apple Message framework v924) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJB1w-0008Ab-Mp for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 13:43:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJB1r-00086f-4e for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 13:43:06 -0400 Received: from [199.232.76.173] (port=49995 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJB1q-00086T-J6 for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 13:43:02 -0400 Received: from korteweg.uva.nl ([146.50.98.70]:11379) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJB1q-0000pF-7S for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 13:43:02 -0400 In-Reply-To: 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: Richard G Riley Cc: org-mode 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 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