Editing PHP Files
.php files are basically raw text files that don’t contain any text formatting apart from tabs, spaces and line breaks. So you need to avoid adding Styles to the Text (which can break the code).
The best way to do this is to open the file in a pure Text Editor and not in a Word Processor. For example in Windows, use NotePad. Right click on the file in Windows Explorer and select Open with NotePad. Dragging and dropping the file name onto the Icon of the Editor will also open it up for editing.
For more advanced users, I recommend using NotePad++ This is handy where you work on many text files and write code since it has tabs for multiple files that are open and includes syntax highlighting plus many other useful features.