[comp.sys.mac.programmer] QUESTION: Format C Code in THINK C 4.0

rapickering@miavx1.acs.muohio.edu (09/22/90)

A question...

I'm sure you have seen how THINK pascal formats you're text.

Well, I like that feature of having keywords in bold and code structures 
formatted so you can tell where they are...

Why was this feature taken out of THINK C ?

And...is there anyway I can put it into THINK C.

-- 
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Rob Pickering
                                            
internet:  pickerin@apsvax.aps.muohio.edu  NeXT: pickerin@next4.acs.muohio.edu  
bitnet  :  rp1voper@miamiu.bitnet               

"One time the police stopped me for speeding, and they said,'Hey, don't
 you know that the speed limit is 55 miles per hour?'.
 I said,'Yeah, I know...but I wasn't going to be out that long.'"
                             -Steven Wright

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

phils@chaos.cs.brandeis.edu (Phil Shapiro) (09/24/90)

In article <2377.26fb359f@miavx1.acs.muohio.edu> rapickering@miavx1.acs.muohio.edu writes:
>   A question...
>
>   I'm sure you have seen how THINK pascal formats you're text.
>
>   Well, I like that feature of having keywords in bold and code structures 
>   formatted so you can tell where they are...
>
>   Why was this feature taken out of THINK C ?
>
>   And...is there anyway I can put it into THINK C.

It was never in Think C.  Think Pascal formats code because it parses
your code as it is loaded, so the editor 'decodes' the parse tree in
order to display your program.  Thus, you get (feature) automatic
formatting and bolding and lose (misfeature?) the ability to
arbitrarily reformat the code as you wish.

You can use Pretty-C (v.1.04) to get nice looking code listings.  It's
ftpable from sumex-aim, $25 shareware.

	-phil shapiro, symantec tech support
--
Phil Shapiro
phils@chaos.cs.brandeis.edu

francis@arthur.uchicago.edu (Francis Stracke) (09/27/90)

In article <2377.26fb359f@miavx1.acs.muohio.edu> rapickering@miavx1.acs.muohio.edu writes:
>A question...
>
>I'm sure you have seen how THINK pascal formats you're text.
>
>Why was this feature taken out of THINK C ?
THINK Pascal (LSP) is descended from Mac Pascal, the first (2nd?) Mac language.
Mac Pascal originated the pretty-printing; LSP inherited it, apparently to
punish us.  LSC is not actually related to LSP; it predates Symantec's
acquisition of the latter (question: anybody know how that came about?).  There
was never any pretty-printing in LSC; it wasn't taken out.
>And...is there anyway I can put it into THINK C.
Hahahahahaha...
Why would you want to, anyway? It's kind of nice, but it gets obnoxious.
Especially when you've got a godawful long list of things that you've told it
you want printed horizontally (variables and unit names, for example--either all
on one line or each on its own).