anyone know of a utility (or a function in a php editor) whereby you can highlight a chunk of text, trigger the command and have all your double quotes switched to single quotes and single quotes switched to double

would be a useful time saver
(I seem to remember BBEdit could do that, but I haven't used a Mac for years)

thanks

    Well, you could write a PHP script to do it with the help of strtr...

      yeah, I was hoping for something I can run in an editor
      still, as you say, shouldn't take long to knock up a function

        I have a PHP code "beautifier" macro in Komodo Edit which calls a PHP script, so it would be easy (I think) to swap a filename in the macro file to run a quote-swapper PHP script, instead.

          Write a Reply...