[squeak-dev] Re: [vwnc] Does anyone have a "new" string literal?
Colin Putney
colin at wiresong.com
Fri Feb 1 23:32:02 UTC 2013
On Fri, Feb 1, 2013 at 3:14 PM, Chris Muller <asqueaker at gmail.com> wrote:
> Why is it a pain to change single quotes into two-successive single quotes?
>
> 1) Copy HTML from external source.
> 2) Back in Squeak, Command+V to paste it.
> 3) Press Command+Home. Press Command+F. Type single-quote (') in
> the find dialog. Enter.
> 4) Type single-quote twice. (Replaces highlighted single-quote with
> two single quotes).
> 5) Command+Shift+J to replace all subsequent occurrences.
> 6) Command+A to select all.
> 7) Command+' (single-quote) to enclose entire string in single quotes.
>
> Takes all of about 10 seconds. Unless HTML has two single-quotes in
> succession I see no reason it shouldn't work..
>
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.
Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130201/a21275b5/attachment.htm
More information about the Squeak-dev
mailing list
|