Hi. As my subject states, my code isn't displaying clean when i go to view source in FF. I haven't checked any other browsers.
I use Dreamweaver, but only the code view. I code everything perfectly clean. I've only noticed this with DW, as I used to use a different editing tool.
Sometimes my indents aren't lining up correctly, or separate lines will be combined into one long one. I tried googling a phrase on it, but nothing came up really.
When you do your indents, do you use the indent icon or just tab the code over? I just use the tab, but I can't imagine why that'd be a problem.
The only thing I could think of for the "separate lines will be combined into one long one" is that you never actually hit "enter" or "return" inside of DW.
When you have the file open in DW, each line should be numbered on the left. If you have lots of text on one line (for example a wrapped in a <p> tag) it won't count the text wrapping as a new line. Did that make sense? Here's a screen just in case: http://www.killerdonkeys.com/thedoc/numbered.jpg
My tabs don't always line up perfectly when viewing source either, I don't have a solution there for ya.
I've never seen that.. everytime I hit enter, it just keeps the number there on the left. Every single space has a number.
Ugh, i just looked at another site I've almost completed and the spacing is terrible... this time a few of the div tags have roughly 6-7 tabs out from the parent tag. :<
What I meant more about the long lines is that typically, something would look like this...
I use Dreamweaver, but only the code view. I code everything perfectly clean. I've only noticed this with DW, as I used to use a different editing tool.
Any thoughts or reasons why this is happening?
I know along time ago when I used DW8 it didnt do the most tidy code, but it was more down to the use of the WYSIWYG editor
So dunno, what version are you using?
Sometimes my indents aren't lining up correctly, or separate lines will be combined into one long one.
I tried googling a phrase on it, but nothing came up really.
When you do your indents, do you use the indent icon or just tab the code over? I just use the tab, but I can't imagine why that'd be a problem.
When you have the file open in DW, each line should be numbered on the left. If you have lots of text on one line (for example a wrapped in a <p> tag) it won't count the text wrapping as a new line. Did that make sense? Here's a screen just in case:
http://www.killerdonkeys.com/thedoc/numbered.jpg
My tabs don't always line up perfectly when viewing source either, I don't have a solution there for ya.
Ugh, i just looked at another site I've almost completed and the spacing is terrible... this time a few of the div tags have roughly 6-7 tabs out from the parent tag. :<
What I meant more about the long lines is that typically, something would look like this...
But one of my pages I looked at literally had this...