Dreamweaver MX 2004 Source Code Formatting
I finally found the secret of changing Dreamweaver MX 2004 source code formatting. I happen to be one of those people who likes HTML code just so. No endlessly nested indents; beyond a certain point, all that indenting causes more confusion than it apparently exists to solve. DWMX2004 now stacks tags line by line:
Well ::ahem:: I find line upon line of such code difficult; a blank line now and then would be welcome. Searching DW's Help section and the DW forums, I found:
- Set Preferences in the Tag Libraries
Edit>Preferences>Code Format>Tag Libraries (the last is a tiny link)
But this does not give you the double-line space
- Edit the .vtm configuration files in
C:>Program Files>Macromedia>Dreamweaver MX 2004>Configuration>TagLibraries>HTML
(on a Windows machine, of course — but this doesn't do it, either)
So, #1 doesn't do it, and … #2 doesn't do it.
Solution, Part A: if you're having this problem, the answer is expressed more than once in the DW forums, but not in a particularly decipherable manner — one that illuminates what the problem is and how and where to solve it. That is, if yours is a Win2K machine or other OS that allows multiple user logins, there are (or will be — keep reading) a duplicate set of configuration files in your user area. And that user area is not in C:>Program Files>etc. — it's here:
C:>Documents and Settings>username>Application Data>Macromedia>Dreamweaver MX 2004>Configuration
You can get to these files via Windows Explorer. Edit the particular .vtm file for which you wish to change code formatting (example: p.vtm, blockquote.vtm) and save. But wait! There's more! If those files are not in your user area:
Solution, Part B: Surprise! The .vtm files do not appear in your user Application Data folders until created via DW's internal Preferences/Tag Libraries link (see #1 above). Do that first, then edit the .vtm file (the tags are fairly straightforward), and -presto!- your new Dreamweaver MX 2004 source code formatting takes precedence.
See, wasn't that easy? And fabulously intuitive? <Geez>
Just pulling your leg a bit, Macromedia; I do love your products, but a little clarification would have made it easier. And the fact that some of us are using a WYSIWYG does not mean we're not code-fussy. <grin>
17 Comments to "Dreamweaver MX 2004 Source Code Formatting"
Have your say ...
First-time comments will be held for moderation (but comments are appreciated). Otherwise, just be courteous. If your name is a bunch of keywords, your comment will be deleted. Don't post links unless highly pertinent. Posters must be 16 or older.