How to copy and paste Javascript code from a PDF file to a texteditor (Textmate or Sublime Text) Everytime, I want to copy and paste one Javascript code example from a book (in a pdf version) to Sublime Text or Textmate, any " " become “ ” >> the code doesn't work. 

Is there any way to fix this ?

Thanks in advance.

Config: OSX Lion,
PDF reader : Skim

Update: For Textmate. the solution is here.
That's probably because the PDF uses actual curly quotation marks (which are indeed syntactically incorrect). The most straightforward thing to do would be performing a search and replace on the copied text in your text-editor.