* [IDEA] HTML-export literal examples to textarea @ 2009-01-16 9:51 Ulf Stegemann 2009-01-17 8:01 ` Carsten Dominik 0 siblings, 1 reply; 15+ messages in thread From: Ulf Stegemann @ 2009-01-16 9:51 UTC (permalink / raw) To: emacs-orgmode 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. Ideally the cols attribute to textarea could be defined by the user after #+begin_textarea (or whatever) with a reasonable default (let's say 80). Rows could be calculated depending on the number of lines inside the block. Export to anything else than HTML should treat such a block in much the same way as an example block. I think this really would be a nice feature to have and maybe I'm not alone with this opinion? Ulf ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [IDEA] HTML-export literal examples to textarea 2009-01-16 9:51 [IDEA] HTML-export literal examples to textarea Ulf Stegemann @ 2009-01-17 8:01 ` Carsten Dominik 2009-01-19 7:25 ` Ulf Stegemann 0 siblings, 1 reply; 15+ messages in thread From: Carsten Dominik @ 2009-01-17 8:01 UTC (permalink / raw) To: Ulf Stegemann; +Cc: emacs-orgmode On Jan 16, 2009, at 10:51 AM, Ulf Stegemann wrote: > 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? - Carsten > > > Ideally the cols attribute to textarea could be defined by the user > after #+begin_textarea (or whatever) with a reasonable default (let's > say 80). Rows could be calculated depending on the number of lines > inside the block. > > Export to anything else than HTML should treat such a block in much > the > same way as an example block. > > I think this really would be a nice feature to have and maybe I'm not > alone with this opinion? > > Ulf > > > > > _______________________________________________ > 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 ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [IDEA] HTML-export literal examples to textarea 2009-01-17 8:01 ` Carsten Dominik @ 2009-01-19 7:25 ` Ulf Stegemann 2009-01-19 8:31 ` Carsten Dominik 0 siblings, 1 reply; 15+ messages in thread From: Ulf Stegemann @ 2009-01-19 7:25 UTC (permalink / raw) To: emacs-orgmode Hi Carsten, Carsten Dominik <dominik@science.uva.nl> wrote: > On Jan 16, 2009, at 10:51 AM, Ulf Stegemann wrote: > >> 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. Ulf ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Re: [IDEA] HTML-export literal examples to textarea 2009-01-19 7:25 ` Ulf Stegemann @ 2009-01-19 8:31 ` Carsten Dominik 2009-01-19 8:56 ` Ulf Stegemann 2009-01-19 9:02 ` Tassilo Horn 0 siblings, 2 replies; 15+ messages in thread From: Carsten Dominik @ 2009-01-19 8:31 UTC (permalink / raw) To: Ulf Stegemann; +Cc: emacs-orgmode On Jan 19, 2009, at 8:25 AM, Ulf Stegemann wrote: > Hi Carsten, > > Carsten Dominik <dominik@science.uva.nl> wrote: > >> On Jan 16, 2009, at 10:51 AM, Ulf Stegemann wrote: >> >>> 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? - Carsten ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [IDEA] HTML-export literal examples to textarea 2009-01-19 8:31 ` Carsten Dominik @ 2009-01-19 8:56 ` Ulf Stegemann 2009-01-19 9:01 ` Carsten Dominik 2009-01-19 10:57 ` Manish 2009-01-19 9:02 ` Tassilo Horn 1 sibling, 2 replies; 15+ messages in thread From: Ulf Stegemann @ 2009-01-19 8:56 UTC (permalink / raw) To: emacs-orgmode Carsten Dominik <dominik@science.uva.nl> wrote: > On Jan 19, 2009, at 8:25 AM, Ulf Stegemann wrote: > >> Hi Carsten, >> >> Carsten Dominik <dominik@science.uva.nl> wrote: >> >>> On Jan 16, 2009, at 10:51 AM, Ulf Stegemann wrote: >>> >>>> 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? yes, in the concrete case the documentation was about a rather complex system and software setup and the "examples" were mainly meant to be copied and pasted directly into an terminal emu ... with variable things like host-, path-, user names an so on. Of course, one could paste this in an editor first to change something but as the changes would be rather minimal this would prove to be a bit clumsy. Actually nobody seems to do it like this. I asked the target group how they handle this and they told me, they just selected the text up to the first variable, pasted it into the terminal, typed their variable value into the terminal and then selected the rest of the example to complete their command line(s). Ulf ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Re: [IDEA] HTML-export literal examples to textarea 2009-01-19 8:56 ` Ulf Stegemann @ 2009-01-19 9:01 ` Carsten Dominik 2009-01-19 11:14 ` Ulf Stegemann 2009-01-19 10:57 ` Manish 1 sibling, 1 reply; 15+ messages in thread From: Carsten Dominik @ 2009-01-19 9:01 UTC (permalink / raw) To: Ulf Stegemann, Eric Schulte; +Cc: Emacs-orgmode mailing list So it remains a kind-of specialistic thing. Maybe Eric would like to add a textarea block to org-export-blocks.el? - Carsten On Jan 19, 2009, at 9:56 AM, Ulf Stegemann wrote: > Carsten Dominik <dominik@science.uva.nl> wrote: > >> On Jan 19, 2009, at 8:25 AM, Ulf Stegemann wrote: >> >>> Hi Carsten, >>> >>> Carsten Dominik <dominik@science.uva.nl> wrote: >>> >>>> On Jan 16, 2009, at 10:51 AM, Ulf Stegemann wrote: >>>> >>>>> 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? > > yes, in the concrete case the documentation was about a rather complex > system and software setup and the "examples" were mainly meant to be > copied and pasted directly into an terminal emu ... with variable > things > like host-, path-, user names an so on. Of course, one could paste > this > in an editor first to change something but as the changes would be > rather minimal this would prove to be a bit clumsy. > > Actually nobody seems to do it like this. I asked the target group how > they handle this and they told me, they just selected the text up to > the > first variable, pasted it into the terminal, typed their variable > value > into the terminal and then selected the rest of the example to > complete > their command line(s). > > Ulf > > > > _______________________________________________ > 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 ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [IDEA] HTML-export literal examples to textarea 2009-01-19 9:01 ` Carsten Dominik @ 2009-01-19 11:14 ` Ulf Stegemann 2009-01-19 17:16 ` Carsten Dominik 0 siblings, 1 reply; 15+ messages in thread From: Ulf Stegemann @ 2009-01-19 11:14 UTC (permalink / raw) To: emacs-orgmode Hi Carsten, Carsten Dominik <dominik@science.uva.nl> wrote: > So it remains a kind-of specialistic thing. no, I wouldn't say so. textarea seems to have become quite popular in HTML online documentation. Apart from all the copy and paste stuff, textarea can do a virtual wrap or give you a horizontal scroll bar. This is nice if you have literal text with long lines that can or should not be wrapped but should also not exceed you layout's horizontal limits. I'd guess this is the main reason, why textarea is widely used to give literal examples. Nevertheless, the textarea block is certainly just a nice-to-have and not an absolutely necessary killer-feature. Ulf ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Re: [IDEA] HTML-export literal examples to textarea 2009-01-19 11:14 ` Ulf Stegemann @ 2009-01-19 17:16 ` Carsten Dominik 2009-01-19 22:16 ` Carsten Dominik 0 siblings, 1 reply; 15+ messages in thread From: Carsten Dominik @ 2009-01-19 17:16 UTC (permalink / raw) To: Ulf Stegemann; +Cc: emacs-orgmode On Jan 19, 2009, at 12:14 PM, Ulf Stegemann wrote: > Hi Carsten, > > Carsten Dominik <dominik@science.uva.nl> wrote: > >> So it remains a kind-of specialistic thing. > > no, I wouldn't say so. textarea seems to have become quite popular in > HTML online documentation. Apart from all the copy and paste stuff, > textarea can do a virtual wrap or give you a horizontal scroll bar. > This > is nice if you have literal text with long lines that can or should > not > be wrapped but should also not exceed you layout's horizontal limits. > I'd guess this is the main reason, why textarea is widely used to give > literal examples. OK, so maybe this is more main-stream than I thought. And, as Sebastian just reminded us, we do have switch processing in examples already in place. So I will put it in, just using a "-t" option at the example (or src) block, and -h and -w options for width and height (cannot use -r for rows, because -r is already taken.....) Eric, no action for org-blocks necessary. - Carsten > > > Nevertheless, the textarea block is certainly just a nice-to-have and > not an absolutely necessary killer-feature. > > > Ulf > > > > _______________________________________________ > 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 ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Re: [IDEA] HTML-export literal examples to textarea 2009-01-19 17:16 ` Carsten Dominik @ 2009-01-19 22:16 ` Carsten Dominik 2009-01-19 22:32 ` Sebastian Rose 2009-01-20 11:34 ` Ulf Stegemann 0 siblings, 2 replies; 15+ messages in thread From: Carsten Dominik @ 2009-01-19 22:16 UTC (permalink / raw) To: Carsten Dominik; +Cc: emacs-orgmode, Ulf Stegemann On Jan 19, 2009, at 6:16 PM, Carsten Dominik wrote: > > On Jan 19, 2009, at 12:14 PM, Ulf Stegemann wrote: > >> Hi Carsten, >> >> Carsten Dominik <dominik@science.uva.nl> wrote: >> >>> So it remains a kind-of specialistic thing. >> >> no, I wouldn't say so. textarea seems to have become quite popular in >> HTML online documentation. Apart from all the copy and paste stuff, >> textarea can do a virtual wrap or give you a horizontal scroll bar. >> This >> is nice if you have literal text with long lines that can or should >> not >> be wrapped but should also not exceed you layout's horizontal limits. >> I'd guess this is the main reason, why textarea is widely used to >> give >> literal examples. > > OK, so maybe this is more main-stream than I thought. And, as > Sebastian > just reminded us, we do have switch processing in examples already > in place. > > So I will put it in, just using a "-t" option at the example (or src) > block, and -h and -w options for width and height (cannot use -r for > rows, > because -r is already taken.....) OK, it is in: #+begin_example -t -w 80 -h 20 ... #+end_example HTH, thanks for the idea. - Carsten > > > Eric, no action for org-blocks necessary. > > - Carsten > > >> >> >> Nevertheless, the textarea block is certainly just a nice-to-have and >> not an absolutely necessary killer-feature. >> >> >> Ulf >> >> >> >> _______________________________________________ >> 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 > ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Re: [IDEA] HTML-export literal examples to textarea 2009-01-19 22:16 ` Carsten Dominik @ 2009-01-19 22:32 ` Sebastian Rose 2009-01-20 11:34 ` Ulf Stegemann 1 sibling, 0 replies; 15+ messages in thread From: Sebastian Rose @ 2009-01-19 22:32 UTC (permalink / raw) To: Carsten Dominik; +Cc: Ulf Stegemann, Carsten Dominik, emacs-orgmode Awesome, thanks!! Sebastian Carsten Dominik <carsten.dominik@gmail.com> writes: > On Jan 19, 2009, at 6:16 PM, Carsten Dominik wrote: > >> >> On Jan 19, 2009, at 12:14 PM, Ulf Stegemann wrote: >> >>> Hi Carsten, >>> >>> Carsten Dominik <dominik@science.uva.nl> wrote: >>> >>>> So it remains a kind-of specialistic thing. >>> >>> no, I wouldn't say so. textarea seems to have become quite popular in >>> HTML online documentation. Apart from all the copy and paste stuff, >>> textarea can do a virtual wrap or give you a horizontal scroll bar. This >>> is nice if you have literal text with long lines that can or should not >>> be wrapped but should also not exceed you layout's horizontal limits. >>> I'd guess this is the main reason, why textarea is widely used to give >>> literal examples. >> >> OK, so maybe this is more main-stream than I thought. And, as Sebastian >> just reminded us, we do have switch processing in examples already >> in place. >> >> So I will put it in, just using a "-t" option at the example (or src) >> block, and -h and -w options for width and height (cannot use -r for rows, >> because -r is already taken.....) > > OK, it is in: > > #+begin_example -t -w 80 -h 20 > ... > #+end_example > > HTH, thanks for the idea. > > - Carsten > >> >> >> Eric, no action for org-blocks necessary. >> >> - Carsten >> >> >>> >>> >>> Nevertheless, the textarea block is certainly just a nice-to-have and >>> not an absolutely necessary killer-feature. >>> >>> >>> Ulf >>> >>> >>> >>> _______________________________________________ >>> 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 >> > > > > _______________________________________________ > 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 > -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Email: s.rose@emma-stil.de, sebastian_rose@gmx.de Http: www.emma-stil.de ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [IDEA] HTML-export literal examples to textarea 2009-01-19 22:16 ` Carsten Dominik 2009-01-19 22:32 ` Sebastian Rose @ 2009-01-20 11:34 ` Ulf Stegemann 1 sibling, 0 replies; 15+ messages in thread From: Ulf Stegemann @ 2009-01-20 11:34 UTC (permalink / raw) To: emacs-orgmode Carsten Dominik <carsten.dominik@gmail.com> wrote: > On Jan 19, 2009, at 6:16 PM, Carsten Dominik wrote: > > OK, it is in: > > #+begin_example -t -w 80 -h 20 > ... > #+end_example > > HTH, thanks for the idea. Great! Works like a charm. Thank you for implementing it :) Ulf ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Re: [IDEA] HTML-export literal examples to textarea 2009-01-19 8:56 ` Ulf Stegemann 2009-01-19 9:01 ` Carsten Dominik @ 2009-01-19 10:57 ` Manish 2009-01-19 11:59 ` Sebastian Rose 1 sibling, 1 reply; 15+ messages in thread From: Manish @ 2009-01-19 10:57 UTC (permalink / raw) To: Ulf Stegemann; +Cc: emacs-orgmode On Mon, Jan 19, 2009 at 2:26 PM, Ulf Stegemann wrote: > Carsten Dominik wrote: > >> On Jan 19, 2009, at 8:25 AM, Ulf Stegemann wrote: >> >>> Hi Carsten, >>> >>> Carsten Dominik wrote: >>> >>>> On Jan 16, 2009, at 10:51 AM, Ulf Stegemann wrote: >>>> >>>>> 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? > > yes, in the concrete case the documentation was about a rather complex > system and software setup and the "examples" were mainly meant to be > copied and pasted directly into an terminal emu ... with variable things > like host-, path-, user names an so on. Of course, one could paste this > in an editor first to change something but as the changes would be > rather minimal this would prove to be a bit clumsy. > > Actually nobody seems to do it like this. I asked the target group how > they handle this and they told me, they just selected the text up to the > first variable, pasted it into the terminal, typed their variable value > into the terminal and then selected the rest of the example to complete > their command line(s). Ditto. Some of the documents I prepared for a team to follow was also used exactly like that: copy-paste a small section, enter some text by hand in terminal, copy-paste the remaining portion. What happens when you edit the text in text area and save the HTML file? Does the modification get saved? In any case, seems like a useful option to have. Seconded. -- Manish ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Re: [IDEA] HTML-export literal examples to textarea 2009-01-19 10:57 ` Manish @ 2009-01-19 11:59 ` Sebastian Rose 2009-01-19 12:04 ` Manish 0 siblings, 1 reply; 15+ messages in thread From: Sebastian Rose @ 2009-01-19 11:59 UTC (permalink / raw) To: Manish; +Cc: emacs-orgmode, Ulf Stegemann Manish <mailtomanish.sharma@gmail.com> writes: > Ditto. Some of the documents I prepared for a team to follow was also > used exactly like that: copy-paste a small section, enter some text by > hand in terminal, copy-paste the remaining portion. What happens when > you edit the text in text area and save the HTML file? Does the > modification get saved? No. You'd need a <form> for that as well as a PHP/Perl/Python script on the Server to do something with the data (assumed that `put' method is disabled which is the most common case). I do think textareas are a good thing too. Long lines, CTRL-a to select everything and so on. I think Carstens suggetion to have something in org-exp-blocks.el is a good idea, since it takes the complexity there. The export as textarea is not complex, but the export as highlighted HTML is (think of all the other options we have now, like line numbers...). So it might be nice and clean to get textarea code out of the way. Regards, -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Email: s.rose@emma-stil.de, sebastian_rose@gmx.de Http: www.emma-stil.de ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Re: [IDEA] HTML-export literal examples to textarea 2009-01-19 11:59 ` Sebastian Rose @ 2009-01-19 12:04 ` Manish 0 siblings, 0 replies; 15+ messages in thread From: Manish @ 2009-01-19 12:04 UTC (permalink / raw) To: Sebastian Rose; +Cc: emacs-orgmode, Ulf Stegemann On Mon, Jan 19, 2009 at 5:29 PM, Sebastian Rose wrote: > Manish writes: >> Ditto. Some of the documents I prepared for a team to follow was also >> used exactly like that: copy-paste a small section, enter some text by >> hand in terminal, copy-paste the remaining portion. What happens when >> you edit the text in text area and save the HTML file? Does the >> modification get saved? > > > No. You'd need a <form> for that as well as a PHP/Perl/Python script on > the Server to do something with the data (assumed that `put' method is > disabled which is the most common case). Thanks for the explanation, Sebastian. -- Manish ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [IDEA] HTML-export literal examples to textarea 2009-01-19 8:31 ` Carsten Dominik 2009-01-19 8:56 ` Ulf Stegemann @ 2009-01-19 9:02 ` Tassilo Horn 1 sibling, 0 replies; 15+ messages in thread From: Tassilo Horn @ 2009-01-19 9:02 UTC (permalink / raw) To: emacs-orgmode Carsten Dominik <dominik@science.uva.nl> 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) ^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2009-01-20 11:34 UTC | newest] Thread overview: 15+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-01-16 9:51 [IDEA] HTML-export literal examples to textarea Ulf Stegemann 2009-01-17 8:01 ` Carsten Dominik 2009-01-19 7:25 ` Ulf Stegemann 2009-01-19 8:31 ` Carsten Dominik 2009-01-19 8:56 ` Ulf Stegemann 2009-01-19 9:01 ` Carsten Dominik 2009-01-19 11:14 ` Ulf Stegemann 2009-01-19 17:16 ` Carsten Dominik 2009-01-19 22:16 ` Carsten Dominik 2009-01-19 22:32 ` Sebastian Rose 2009-01-20 11:34 ` Ulf Stegemann 2009-01-19 10:57 ` Manish 2009-01-19 11:59 ` Sebastian Rose 2009-01-19 12:04 ` Manish 2009-01-19 9:02 ` Tassilo Horn
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).