If I copy a chunk of text from an HTML tag in browser source code, then create a scratch.txt file in the project, pasting the text HTML-encodes it so that something like => is converted into => (equals ampersand g t).
Here's an example:
echo "<pre>RequestedThing->Parts[$partdate]: " . print_r($RequestedThing->Parts[$partdate], true) . "</pre>\n";
If I instead paste the text into another editor like TextMate, it doesn't convert any characters. If I then paste that text into the scratch file, it shows properly.
The copied text is coming from Chrome Inspect Elements, and it doesn't matter whether I copy the tag inner HTML or the just the flat text itself.
I can't tell if Chrome is just making it copy with HTML-encoded characters and TextMate is converting them, or if PHPStorm is converting them on paste but only from Chrome for some reason.