mask included contents in design panel
I have an include file that contains a few functions that produce the necessary code for an html email. Since it makes tweaking the layout so much easier the include file contains mainly html code, e.g. (much simplified):
Include file:
<?php
function htmlmail($salutation)
{
ob_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html"; charset="iso-8859-1"></head>
<body>
<p>Dear <?php echo htmlentities($salutation); ?></p></body>
</html>
<?php return ob_get_clean();
}?>
I don't want DW CS4 to show this code in the design panel of the main file, since it displays incorrectly (thinks it has got to the end of the document, when of course it hasn't really even started.
Can anyone think of a tidy solution?
Ed
