From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: [IDEA] HTML-export literal examples to textarea Date: Mon, 19 Jan 2009 10:02:30 +0100 Message-ID: <878wp7act5.fsf@thinkpad.tsdh.de> References: <0F3A5DC4-D191-472D-BCA6-7978CEB308F9@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 1LOq1z-0004kX-By for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 04:02:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LOq1w-0004jl-J8 for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 04:02:49 -0500 Received: from [199.232.76.173] (port=35037 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LOq1w-0004jW-4f for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 04:02:48 -0500 Received: from main.gmane.org ([80.91.229.2]:57074 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LOq1v-0002Sv-FP for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 04:02:47 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LOq1q-0006Q0-Lw for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 09:02:42 +0000 Received: from dhcp37.uni-koblenz.de ([141.26.71.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Jan 2009 09:02:42 +0000 Received: from tassilo by dhcp37.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Jan 2009 09:02:42 +0000 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: emacs-orgmode@gnu.org Carsten Dominik writes: Hi! >>>> Is it worth thinking about an example block that will be exported >>>> to a "

" structure in HTML >>>> export? >>>> >>>> I was recently playing around with org for online >>>> documentation. The documents contained lots of literal examples >>>> that can be directly copied and pasted e.g. into a terminal >>>> emu. While example- and src blocks work fine, I think that putting >>>> this kind of information into a textarea would be even better. >>> >>> Hi Ulf, so far I fail to see what the big advantage would be. Can >>> you try again to explain? >> >> of course. Generally, selecting text is a bit easier inside an input >> box but the very real advantage is that you can edit inside >> inputs. This allows to give literal examples with "variables" that >> can be changed directly inside the page before being copied and >> pasted. > > Hmmm, but why would you want to edit them in the text window, if you > will paste them into an editor anyway, where you probably can edit > them a lot easier? Or are you talking about pasting examples directly > into an interpreter input stream? I think that something like textareas might be nice sometimes, but I'd suggest a more general approach. How about something like #+begin_export_html #+begin_export_html \textit{foo} #+end_export_html #+end_export_html for each export format, where the latex export would ignore everything else. Maybe an "alternative" thingy would be needed, too. Something like common lisp's reader macros "#+sbcl" and "#-(or cmu ecl)" could be used. Bye, Tassilo -- No person, no idea, and no religion deserves to be illegal to insult, not even the Church of Emacs. (Richard M. Stallman)