<http://forum.pspad.com/read.php?f=2&i=11511&t=11511> 
----------------------------------------------------------------

I find PSPad so useful that I may dump Dreamweaver, but Dreamweaver has a
very useful function that PSPad doesn't seem to have - The code
"Library". When you alter a code clip in the library, say add a link,
Dreamweaver automatically updates the code, wherever else it has been
inserted in to a page.

Most good websites have areas that stay constant sitewide - e.g. the
header, navigation and footer. Adding a link to the navigation once all
the pages are complete would mean adding it to all pages, by hand.
(ignoring serverside includes).

Here is how it would work. When you insert a clip in to a page PSPad would
mark the areas of code, via HTML comments, like this:

<!-- NAV -->

.... Navigation code here...

<!-- EndNAV -->

The comments are read by the PSPad every time it opens a page, so that it
knows where the clips are within it. Then, when the user changes code
within the clips library, PSPad changes the same code in all of the other
HTML files.

A simple but very useful function. Maybe its possible to make
macros/scripts to do this?


Tim

-- 
PSPad freeware editor http://www.pspad.com

Reply via email to