[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: [IDEA] HTML-export literal examples to textarea
From: |
Tassilo Horn |
Subject: |
[Orgmode] Re: [IDEA] HTML-export literal examples to textarea |
Date: |
Mon, 19 Jan 2009 10:02:30 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Carsten Dominik <address@hidden> writes:
Hi!
>>>> Is it worth thinking about an example block that will be exported
>>>> to a "<p><textarea ...>...</textarea></p>" 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} <textarea>...</textarea>
#+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)
- [Orgmode] Re: [IDEA] HTML-export literal examples to textarea, (continued)
- [Orgmode] Re: [IDEA] HTML-export literal examples to textarea, Ulf Stegemann, 2009/01/19
- Re: [Orgmode] Re: [IDEA] HTML-export literal examples to textarea, Carsten Dominik, 2009/01/19
- [Orgmode] Re: [IDEA] HTML-export literal examples to textarea, Ulf Stegemann, 2009/01/19
- Re: [Orgmode] Re: [IDEA] HTML-export literal examples to textarea, Carsten Dominik, 2009/01/19
- Re: [Orgmode] Re: [IDEA] HTML-export literal examples to textarea, Carsten Dominik, 2009/01/19
- Re: [Orgmode] Re: [IDEA] HTML-export literal examples to textarea, Sebastian Rose, 2009/01/19
- [Orgmode] Re: [IDEA] HTML-export literal examples to textarea, Ulf Stegemann, 2009/01/20
- Re: [Orgmode] Re: [IDEA] HTML-export literal examples to textarea, Manish, 2009/01/19
- Re: [Orgmode] Re: [IDEA] HTML-export literal examples to textarea, Sebastian Rose, 2009/01/19
- Re: [Orgmode] Re: [IDEA] HTML-export literal examples to textarea, Manish, 2009/01/19
- [Orgmode] Re: [IDEA] HTML-export literal examples to textarea,
Tassilo Horn <=