in reply to “ and ” (and friends) in sourcecode

There's two scenarios you might have smart-quotes in your source code:
  1. Your editor put them there because its programmers thought they were smarter than you.
  2. You put them there within some string in your source code.

In scenario 1, you need to find the settings that will affect that and fix them. The best way to do that is to change editors. Both emacs and vim are available for Windows, as well as many other excellent editors written for programmers. Pick one, learn it, and use it. I like vim, but that's just me. YMMV.

In scenario 2, if you're having issues, just change your quoting operator. Instead of ', use q{}. Instead of ", use qq{}.


My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
  • Comment on Re: “ and ” (and friends) in sourcecode