Prevent PhpED from inserting carriage return (^M) |
Guru master
|
Whilst you have a file open in the editor, at the bottom of the PhpED window there is a bar which shows character set, file type (PHP) and encoding (WINDOWS / MAC OS / UNIX).
You can right-click those labels to change them. The default encoding for all of my files is UNIX (which is generally correct) even when I open files using Samba to a Linux server. That is a single linefeed at end of lines. My guess is that you have WINDOWS encoding, which is adding the extra carriage return. Check your IDE Settings for the Default file encoding (System default encoding) and Default file format (Autodetect). I use the default values for both of those and have never had an issue with encoding being changed on existing files and all my files, even new ones that I create on Windows, are UNIX encoded (which is good). You might find forcing that setting to UNIX fixes an issue. |
||||||||||||
|
|
Thank you plugnplay!
Never noticed that tiny bar at the bottom. Also changed Default file format to Unix. Works great! |
||||||||||||
|
Prevent PhpED from inserting carriage return (^M) |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by