🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #421

Re: Starting a New Borland C++ website.

#421
From: Jeff Elliott
Date: Mon, 19 Jan 1998 00:00
43 lines
3186 bytes
Selom,

I don't know anything about OWL HOW, but the reasons your code "looks like
crap" outside of the IDE is probably because you've got "hard tabs" turned on
in the IDE's configuration, those tabs are possibly set to some funky number
like 3 or 5, and your code also contains a _mixture_ of the <TAB> character
and several <SPACE> characters used for indenting each line.  In addition to
that, you may have the "arrow over tabs" feature turned on, so you can't tell
from the cursor's jumping around whether it hit a <TAB> or a <SPACE>
character.

I'd recommend turning all tabbing OFF in the IDE.  This way, your indenting is
sure to be true no matter who views it with any which editor.  If that's not
convenient, try at least setting the tab spacing to something standard like 8
(or if that's too large, as it usually is, try 4 -- but keep in mind the next
guy might not have his tabs set at 4 columns).  

I don't use tabs at all, but every time I press the <TAB> key my editor
inserts spaces up to the next soft tab stop -- which is every 4 positions.

Jeff
-- 
Montgomery, AL, USA
Please direct return correspondence to:  mailto:cguru@ibm.net
NOTE: The opinions and viewpoints expressed herein are the author's own,
and in no way reflect those of International Business Machines, Inc.


Selom Ofori wrote:
> 
> > There are other sites. Why don't you participate at them ?. Knowledge 
> > would get concentrated ?
> > Check out the OWL HOW site at
> >  http://www.tenermerx.com/owlhow/
> > for example?
> 
> I've seen OWL HOW but submitting information is quite a pain. there are all
> these hoops you have to go through like making html files and formating 
> code(major problem because my code looks like crap outside the ide. I don't 
> know why the indents are screwed). Anyways, another site called 
> codeguru.com for MFC doesn't have these rules. All you need is a simple 
> text explanation and the site op does the html
Technical Details
Message-ID: <34C3CBA7.A488C123@ibm.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <MPG.f284bf059469cba98969a@news.edmonton.telusplanet.net> <34BF37D7.3A648DDF@umawihp0.wifo.uni-mannheim.de> <34C2D841.98D2BCA8@chat.carleton.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f8d38,ec7cf716d7fb503f
X-Google-Attributes: gidf8d38,public
X-Google-Thread: 114592,ec7cf716d7fb503f
X-Google-Attributes: gid114592,public
X-Google-Thread: 103bde,ec7cf716d7fb503f
X-Google-Attributes: gid103bde,public
X-Google-Thread: 108ebe,ec7cf716d7fb503f
X-Google-Attributes: gid108ebe,public
X-Google-Thread: 109fba,ec7cf716d7fb503f
X-Google-Attributes: gid109fba,public
X-Google-Thread: fe201,ec7cf716d7fb503f
X-Google-Attributes: gidfe201,public
From: Jeff Elliott <cguru@ibm.net>
Subject: Re: Starting a New Borland C++ website.
Date: 1998/01/19
Message-ID: <34C3CBA7.A488C123@ibm.net>
X-Deja-AN: 317467979
Content-Transfer-Encoding: 7bit
References: <MPG.f284bf059469cba98969a@news.edmonton.telusplanet.net> <34BF37D7.3A648DDF@umawihp0.wifo.uni-mannheim.de> <34C2D841.98D2BCA8@chat.carleton.ca>
To: Selom Ofori <sofori@chat.carleton.ca>
Content-Type: text/plain; charset=us-ascii
Organization: IBM.NET
MIME-Version: 1.0
Reply-To: cguru@ibm.net
Newsgroups: alt.comp.lang.learn.c-c++,borland.public.cpp.language,borland.public.cpp.owl,borland.public.cpp.winapi,comp.lang.c++,comp.os.ms-windows.programmer.tools.owl