You might peek at these links for better text editors for php files:
http://www.zen-cart.com/wiki/index.php/Useful_Tools
https://www.zen-cart.com/content.php...-with-zen-cart
as it sounds like your editor is treating your files as HTML vs php files ...
Bookmarks