On 8 Sep 2007, at 13:31, Mario Rizzi wrote:

I have a long text with a lot of Html tags. I would like to change
all the quotes to smart quotes, but if I use the Text>Educate Quotes
command, BBEdit will educate all the quotes, even those which are
inside tags. Is there a way of getting BBEdit to skip the quotes in
tags?

Have you tried HTML Tidy on your file? Depending on the current condition of your file, it may do exactly what you want.

I have tried and ended up with double quotes inside tags. HTML Tidy didn't straighten the smart quotes inside tags, but added straight ones before and after instead.

Wow! You're absolutely right Mario. I guess I've always had text that had smart quotes already, so when I chose Markup/Utilities/Translate, the straight quotes in the tags were automagically ignored.

Perhaps the Educate Quotes menuitem should bring up a dialog -- much like Translate's -- which allows you to choose to Ignore < and > and anything between. That would do the trick for you.

In the meantime, perhaps an Applescript to run 2 or 3 steps for you is the best that you'll get.

Rob

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to