If you wound up on this page looking for how to indent paragraphs in HTML, I wrote a document just for you, that's suitable for beginners.

Why I love having tabs in source code.

Many people indent with spaces. But this is a bad idea in general. If tabs were used for indentation, and spaces were used for generic formatting, we wouldn't have this problem. Decent editors that cooperate with tabs properly are at least VIM and KWrite.

Reasons why the arguments at http://www.new.ox.ac.uk/~adam/computing/why_no_tabs.html don't work are as follows:

In fact, the advantage of hard-tabs is demonstrated by the kde cvs repository. Most applications are indented with spaces, most of those are inconsistently tabbed. Of the few tabbed modules (aRts, Noatun), the code is exactly 100% consistent.

Indenting the following way is best. Tab will be an underscore, space will be a dot:

_____if.(true)....//This should be replaced
_____{............//with a proper boolean
__________func();
_____}

At any indentation level, all will align.

SomeClass::SomeClass()
_____.:.InheritingClass(false, false
_____...................5, 10, true,
_____...................bleh, blah)
{
// ....
};

// vim: ts=4 noet