<div dir="ltr">Tobias,<div><br></div><div>  ignore my email.  I'm reviewing your code.  But I will say that adding inst vars is making things more complicated too.  I added three methods to achieve what I wanted and you've added 8 and an inst var ;-)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 9, 2017 at 11:13 AM, Eliot Miranda <span dir="ltr"><<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Tobias,<div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Feb 9, 2017 at 10:54 AM, Tobias Pape <span dir="ltr"><<a href="mailto:Das.Linux@gmx.de" target="_blank">Das.Linux@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
On 09.02.2017, at 09:47, H. Hirzel <<a href="mailto:hannes.hirzel@gmail.com" target="_blank">hannes.hirzel@gmail.com</a>> wrote:<br>
<br>
> On 2/8/17, Tobias Pape <<a href="mailto:Das.Linux@gmx.de" target="_blank">Das.Linux@gmx.de</a>> wrote:<br>
>><br>
>> On 08.02.2017, at 19:59, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>> wrote:<br>
>><br>
>>> Hi All,<br>
>>><br>
>>>    I'd really like this to be in trunk.  I've just written a blog post in<br>
>>> a Workspace using this code<br>
>>> (<a href="http://www.mirandabanda.org/cogblog/2017/02/07/smalltalk-scanning-and-shcontrol-structures/" rel="noreferrer" target="_blank">http://www.mirandabanda.org/c<wbr>ogblog/2017/02/07/smalltalk-sc<wbr>anning-and-shcontrol-structure<wbr>s/</a>)<br>
>>> and it turns creating a blog post into a simple copyHtml paste operation<br>
>>> from a workspace to (in my case) WordPress.  So any reviewers?<br>
>><br>
>> Care to explain it a litte bit? :)<br>
>> It looks a bit complicated to my eyes.<br>
>> Also, do you really want <pre>?<br>
>> (<a href="http://stackoverflow.com/questions/4611591/code-vs-pre-vs-samp-for-inline-and-block-code-snippets#4611735" rel="noreferrer" target="_blank">http://stackoverflow.com/ques<wbr>tions/4611591/code-vs-pre-vs-<wbr>samp-for-inline-and-block-code<wbr>-snippets#4611735</a>)<br>
>><br>
>> The HtmlReadWriter seems to (up until now) pretty directly map text<br>
>> attributes to html attributes.<br>
>><br>
>> You seem to want to differentiate code from non-code, so what about having a<br>
>> do-it attribute, that does exactly that?<br>
>> Because now, there's also no back-reading of such html into a Text object,<br>
>> wich I find unfortunate.<br>
>> I think, the readwriter should be able to read what it has written.<br>
>><br>
>> I know, it's a mere convenience thing, but still, its very procedural, and<br>
>> seeing #~~ in high-level code is strange to my eyes…<br>
>><br>
>> What would be really cool is to<br>
>>      - mark the code as do-it<br>
>>      - have the do-it present itself as <code> or <pre> on Html.<br>
> +1<br>
<br>
So with Bert's help, I did just that (see trunk).<br>
<br>
Workflow for Eliot could be now:<br>
 - Write text in workspace<br>
 - Copy (formatted) code to workspace<br>
 - [Attention: new] select the code and CMD-6 it as DoIt<br>
   (code is now clickable and underlined)<br>
 - repeat until satisfied<br>
 - yellow-click and 'copy as html'<br></blockquote><div><br></div></div></div><div>Thanks for your efforts, but, forgive me for saying so, this is worse than my approach.  <pre> is designed to preserve wits-space, and indented text needs this.  If there's a bug with my code it is that it looks for tab at start-of-like rather than whitespace.  Can we merge our code?  IMO your approach should cause text marked as a Doit to be generated between <code></code> markers, where as there is still a need for generating non-Doit code between <pre></pre> markers.  If you don't object I'll merge in my code.</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Also, there are two test for this behavior now.<br>
<br>
HTH<br>
<br>
Best regards<br>
<span class="m_-4668878983359798225HOEnZb"><font color="#888888">        -Tobias<br>
<br>
<br>
<br>
</font></span></blockquote></span></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-4668878983359798225gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div>