I should add that the site is displaying correctly in the browser. Also, that when I copy the file (e.g the category.php) thendelete the old one, then rename it as ‘category.php’, the file then shows the code correctly in the text editor.
Thanks,
Oliver