![]() |
why do so many designers use 2 spaces instead of tab in HTML?
Is that a Dreamweaver thing?
When trying to edit it everything gets misaligned. Plus spaces don't play well with most text editor indentation tools. I have to reformat all the HTML I get delivered just so I can modify it and add code to it. |
just use your editor (if it supports it) to replace two spaces with a tab (\t)
|
probably because there is no tab in html.
You'd have to use span or pre |
I thought he was talking about misaligned code... double spaces won't do anything in html either, you'd have to type
|
umm no two spaces exsist in html
|
there's no such thing as tab
|
I'm talking about indentation not spaces actually showing up on the rendered page.
Substituting 2 spaces with \t will work for most cases though. I'll give that a try. |
Quote:
|
You're the first self-proclaimed programmer I've ever seen to bitch about spaces vs tabs in favor of tabs. The first. I've been doing this for over 15 years, and HTML beautifying for about 12. Congratulations!
|
Quote:
I found this tidbit when I got bitched at by the 18th warez-trillian-0.4 owner who said my sentences kept having &jibberish. I double space my sentences; it's more legible that way. |
I have found that sometimes white space can break layouts from time to time, but the reason I am posting is, why are you paying for a web coder that does that kind of thing?
|
Quote:
Why do you think they invented the tab key in the first place? For indentation. What's the space key for? For separating words and sentences (tokens in code parlance). Try changing the indentation on a block of code when it has spaces instead of tabs. Both vi and Textmate don't like it very much. I hate 2 spaces. What are you still using DOS with an 80x25 character display? Change your screen resolution and font size. 2 spaces is like a few millimeters. Barely even noticeable that it's indented. If you use tabs you can let the user control tab sizes, thus letting the user choose their preference. Congratulations for making it really difficult for me to notice the indentation. Gee, let me hit space 4 times to indent instead of tab once. Want to go back, now I have to hit delete multiple times. Congratulations for wasting my time. If I'm editing HTML code and I hit enter to create a new line and then hit tab to indent... well it indents different distance from the code below that should be at the same indentation level. Congratulations for fucking up my indentation. If I want to change the indentation and highlight a block and tell it to unindent, guess what, it only goes to the left 1 space instead of 1 indentation level. Congratulations for wasting my time yet again. BTW, I used to use spaces about 15 years ago when I programmed in DOS. It made sense back then because 8 spaces for tab was huge. But that's not the case anymore. Almost nobody uses 8 spaces for tab and screen resolutions are much higher now. A wise UNIX teacher taught me to use tabs and that was some of the best advice I have ever been given. |
Fucks spaces AND tabs.
|
Format C
|
I never use html tricks for designing a page. It's perfect possible with css alone.
|
Two spaces is the proper space between a sentence for a paragraph.
|
no tab at all
|
Quote:
|
most everyone that I've seen that does that is using dreamweaver with its out of the box settings
|
Quote:
|
Just html code formatting? Who cares :)
|
Quote:
|
Quote:
|
Sadly, I read that just fine.
|
Its easier
|
Quote:
So... *PHP syntax doesn't meet your standards *Dreamweaver doesn't cut the mustard *30+ years as a fulltime programmer With all that experience have you ever considered creating your own tools or contributing to any open source projects?:thumbsup |
haha, only amongst programmers can this frikking argument occur!!!
personally, I'm a tab man, and as soon as I see code with spaces for indentation, be it 2 or 4 or whatever, I find what is the tab equivalent and search all/replace. Each to their own. Now should opening braces go on a new line or follow on the same line of the code they open? That is worth an argument...... I personally open braces on the same line that they open as I treat them as a colon or semi colon - they are following on from what was just said, but is in a new context. Those poooofters that just open braces on a new line can't follow the code and so need to visualise where they've opened a brace to be able to close it. :P |
Quote:
|
All times are GMT -7. The time now is 04:59 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123