"If you want to remove template code from the template, run Modify | Templates | Export Without Markup and you will be left with plain HTML and CSS."
Only works providing the original 'Templates' folder is contained in the local site definition folder.
After you inherit a few of these sites, it becomes a pain in the 455 stripping out DWT comment code. I use the following script to automatically strip html comments in all *.xxx files from a site folder. It requires the site folder to be on a webserver and php installed and running. If there are sub-directories in the site, the file has to be moved to those folders and re-run. Usage is explained in the comments:-
Main Topics
Browse All Topics





by: jason1178Posted on 2009-08-14 at 13:31:06ID: 25102052
Hi andy_ee,
A DWT file is an HTML file. The only difference is that DW inserts some special comment code that speaks to DW and tells it to not allow edits in certain areas.
If you want to remove template code from the template, run Modify | Templates | Export Without Markup and you will be left with plain HTML and CSS.