I have made great use of the "View-Source" R-click option to study both HTML , JavaScript and other aspects of mark-up for web-development. And I have a few books and all the great online tutorials yet it is still difficult to find all the answers sometimes without asking the pros here.
At least one source has said that the "SHAPE" of the javascript code is critical, and that the lines need to go on to the ';' to end each line (of a Funtion). And when I use View-Source, I find that the code can be sometimes (not always) all shifted to the left- margin while at other times the code is written all across the page, with some lines not starting for long null-strings of white-space and many lines do not align to the left margin. If I try to cut and paste this 'shaped' code, the main word-processor I use always makes it all go to the margins, while Corel WP gives the option to paste with or without formatting. So my question is HOW IMPORTANT is the conservation of code-shape as long as the lines do end in a semi-colon. ??
_JHG
At least one source has said that the "SHAPE" of the javascript code is critical, and that the lines need to go on to the ';' to end each line (of a Funtion). And when I use View-Source, I find that the code can be sometimes (not always) all shifted to the left- margin while at other times the code is written all across the page, with some lines not starting for long null-strings of white-space and many lines do not align to the left margin. If I try to cut and paste this 'shaped' code, the main word-processor I use always makes it all go to the margins, while Corel WP gives the option to paste with or without formatting. So my question is HOW IMPORTANT is the conservation of code-shape as long as the lines do end in a semi-colon. ??
_JHG