Dreamweaver source formatting
| From: | Geranium | Date: | Thu, 21 Nov 2002 00:39:34 +0000 |
| Subject: | Dreamweaver source formatting | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6484@lists.php.net to get a copy of this message | ||
...again, I hear you say... I've done all the changes documented in the
wiki (though the codecoloring xml file is nowhere to be seen) and
elsewhere, and for the most part DW is behaving well with Smarty. One
thing remains: DW insists on putting line breaks before and after most
Smarty tags when you apply source formatting rules, messing up source
code. e.g.
<td>regular text formats like this</td>
<td>
{* smarty tags format like this *}
</td>
This doesn't seem to depend on whether DW is set to put line breaks
around <td> tags or not.
DW seems reluctant to treat anything other than <> delimited things as
tags, yet it doesn't format Smarty tags the same as plain text - it's
in some kind of DW-limbo.
I could fix this by turning Smarty tags into ASP-style tags along the
lines of <smarty:$somevar>.
Anyone got a more elegant solution?