Copy pasting PHP from e-book, quotes are messed up...

Rip the Jacker

Diamond Member
Dec 29, 2004
5,415
1
76
Hey.

I have this e-book with PHP examples that I have to constantly copy paste every 5 or so minutes, and whenever I copy paste the code, the quotation marks are messed up and I have to manually replace them.

They look more italicized than normal ones, here is an example

Because of this, my code is messed up and I get errors. I was wondering if there was a solution for this. (By the way, I'm copy pasting this to Crimson Editor).
 

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
Those are "special" curly quotation marks, not the one you find on your keyboard. Those are supposedly typographically correct quotation makrs. The proper way to output it in HTML is by using character entities..

? is for double left quotation, ? is for right.

Or you can just copy and paste the "weird" quotation marks in "find", and then replace them by the usual quotation marks.. if you don't care about the "proper" way of doing it.

Edit: Sheesh. fusetalk fvcking blows. Look here. Basically what you want is entity #8220 and #8221.
 

statik213

Golden Member
Oct 31, 2004
1,654
0
0
Can you do a find and replace? Select the funny quote mark copy and paste it in the search field and replace it with the regular qoute mark... If you can macro it.
FYI most (e)books refer you to the books website where you can download the source code for the examples, look in the books introduction.