<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 1, 2013 at 3:14 PM, Chris Muller <span dir="ltr"><<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@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 class="im"><span class="Apple-style-span" style="color:rgb(34,34,34)">Why is it a pain to change single quotes into two-successive single quotes?</span><br>
</div>
<br>
1) Copy HTML from external source.<br>
2) Back in Squeak, Command+V to paste it.<br>
3) Press Command+Home. Press Command+F. Type single-quote (') in<br>
the find dialog. Enter.<br>
4) Type single-quote twice. (Replaces highlighted single-quote with<br>
two single quotes).<br>
5) Command+Shift+J to replace all subsequent occurrences.<br>
6) Command+A to select all.<br>
7) Command+' (single-quote) to enclose entire string in single quotes.<br>
<br>
Takes all of about 10 seconds. Unless HTML has two single-quotes in<br>
succession I see no reason it shouldn't work..<br></blockquote><div><br></div><div>Javascript might have two single-quotes in succession—that's an empty string. And even when the above does work, it's still a pain.</div>
<div><br></div><div> Colin</div></div></div></div>