You're on the right track with the heredoc format as it does make it somewhat easier to read, however if you have a large amount of html I would suggest that you look at a template engine.
Template engines separate the code from the html very nicely with many advantages (like the ability to use WYSIWYG editors). I myself use smarty (
www.smarty.net ) but there are many others out there.