(Warning: seriously off-topic post follows)

Ervin Peters wrote:
> On Wed, 21 Sep 2005 09:41:52 +0200
> Piotr Fusik <[EMAIL PROTECTED]> wrote:
> 
>>I'm in a closed source project where you can find tabs in some files,
>>spaces in other and a mix of tabs and spaces in some other.
> 
> 
> It might be a solution to run something called pretty printer over
> all that files, to have a consistent use of tabs and other codingstyle
> guidelines, as it can be used in some codedatabases and
> Revision-Control-Systems.
> For (x)html you can use tidy.
> 

I write all my XHTML/PHP by hand using SciTE, with 4 spaces instead of
tabs, to line up code according to the nesting level (eg. BODY is
indented wrt. HTML definition) - using tabs here gets very messy when
you try and view the source due to the sheer size of them (for example,
"view source" in many modern browsers will display tabs as 8 spaces by
default). The alternative in these situations to having code running off
the end of the page is to hard-wrap at 80 chars (which with tabs taking
up 8 spaces can make things very narrow). Hence I use 4 literal spaces,
because then I know what I'm getting, across platforms.

-- 
Alphax                      |   /"\
Encrypted Email Preferred   |   \ /     ASCII Ribbon Campaign
OpenPGP key ID: 0xF874C613  |    X   Against HTML email & vCards
http://tinyurl.com/cc9up    |   / \
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to