Can anyone give me advice - I have a new menu (html) to copy in 331 html files. FAR function of Dreamweaver is limited. (There are 500 lines html) - does anyone know a program that can handle it? Or a solution for the limitations of Dreamwaever?
Your base solution starts with losing Dreamweaver. Better, give it to someone you don't like. Best is to sell it to someone you really don't like. Now find a free, highly functional text editor. Search this forum for opinions on which editors are superior. Emacs is best, but may be more powerful than you'll ever need. The rest are pretty damned good themselves. This is an everyday practice among developers. You write a code snippet, say a menu, save it as a file and you propagate it throughout the site by using includes. In simple terms, on each page in which you want the menu, for instance, to appear, you simply write an include statement that inserts the snippet. Write the menu once, use it wherever needed. See http://httpd.apache.org/docs/current/howto/ssi.html for 'Server side includes' and http://php.net/manual/en/function.include.php for PHP include methods. If you use a templating engine, e.g. Smarty for PHP, see http://www.smarty.net/docs/en/language.function.include.tpl cheers, gary
What Gary said. Also... a menu with 500 lines of code? That is... quite a huge-ass menu. Normally, my site-wide menus are... I dunno, at most 20-30 lines of HTML. Given sub-menus, multiply that with 2 or 3 at the most. If your menu is more than 500 lines of code, it's either too complex, or doesn't load dynamically based on what side you're on.