|
Posted by ato_zee on 11/12/06 12:32
On 12-Nov-2006, Terry Liittschwager <terrytoo@wildblue.net> wrote:
> The problem is that whenever I want to add another line, I have to edit
> every page. I'm sure there must be some way to have those lines in a
> separate file, referenced by one line unchanging line in each page, so that
> when I change the navbar, I only have to do it in the one place. For the
> life of me, though, I haven't found out how to do that.
One easy solution is "Search and Replace" software, on every
page I have a comment
<!--- NAVBAR --->
navigation HTML links in between
<!--- END NAVBAR -->
I change it on one page, select and copy including
the two comments, paste into search and replace,
using a wildcard, in my case * between the comments.
Then it replaces the two comments and the new
navigation menu on every page.
I use Alert Search and Replace, but there are many
similar programs. You just need one that supports
wildcards that match everything.
As with
<!--- NAVBAR --->*<!--- END NAVBAR -->
The new navigation replaces the old.
Another useful tool is
Type it In, there are many similar tools.
You create the string associated with a button.
Highlight what you want to replace, press the
button, it's done.
Also very useful for snippets of code you use
regularly, such as styles.
You could write a button for
<p class="xyz"> another for </p>
saves hours.
Hope this helps.
Another way is frames but that opens a whole can of
nasty worms.
[Back to original message]
|