Forums
This topic is locked
editing library item causing code format rewrite
Posted 26 Jul 2004 09:20:53
1
has voted
26 Jul 2004 09:20:53 Pete Ottery posted:
is there a way to stop dreamweaver (mx 2004 7.0.1 on xp) from rewriting the code formatting when i edit a library item?example:
if my code looks like this:
--------------------------------
<body>
</body>
--------------------------------
and i insert a simple test library item:
--------------------------------
<body>
<!-- #BeginLibraryItem "/Library/test.lbi" -->
<div> hi there, this is a test div, testing, testing </div>
<!-- #EndLibraryItem -->
</body>
--------------------------------
when i go back to edit that library item later, the #BeginLibraryItem and #EndLibraryItem tags move within the code, so the code changes to:
--------------------------------
<body><!-- #BeginLibraryItem "/Library/test.lbi" -->
<div>
hi there, this is a test div, testing, testing, edited
</div><!-- #EndLibraryItem --></body>
--------------------------------
ie: the library item code is now on the same lines as the body tag.
This is just a very simple *example* of the problem. I'm finding this to be a much bigger problem when library items are edited on a full site and what was originally nicely formatted code (and easily readable by the many people that have to later edit the code i write) gets messed up and loses all formatting.
any help/ideas hugely appreciated (i'm brand new to dreamweaver from hand editing for years in homesite and bbedit so be gentle if the answer is hideously simple <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
pete<font face='Arial'></font id='Arial'>
Replies
Replied 09 Aug 2004 22:54:15
09 Aug 2004 22:54:15 Olaf Lederer replied:
Yes, uncheck the "show content included files" (preferences->invisible elements)
Greetings from the Netherlands!
Olaf
_____________________
www.finalwebsites.com
Greetings from the Netherlands!
Olaf
_____________________
www.finalwebsites.com
Replied 10 Aug 2004 02:14:07
10 Aug 2004 02:14:07 Pete Ottery replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Yes, uncheck the "show content included files" (preferences->invisible elements)
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
thanks - just tried that, but that setting appears to apply to 'server side includes' only.... not library items within dreamweaver. When a library item is inserted it still shows its contents (which makes sense, how else would a browser understand it when previewed) but when edited, the library item markup shifts around in your code....
so still looking for a solution..... any help appreciated
Yes, uncheck the "show content included files" (preferences->invisible elements)
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
thanks - just tried that, but that setting appears to apply to 'server side includes' only.... not library items within dreamweaver. When a library item is inserted it still shows its contents (which makes sense, how else would a browser understand it when previewed) but when edited, the library item markup shifts around in your code....
so still looking for a solution..... any help appreciated
Replied 10 Aug 2004 09:21:07
10 Aug 2004 09:21:07 Olaf Lederer replied:
Ooh, now i see the problem. Where can I find the option for the library-items?
Never used this before <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
Greetings from the Netherlands!
Olaf
_____________________
www.finalwebsites.com
Never used this before <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
Greetings from the Netherlands!
Olaf
_____________________
www.finalwebsites.com