Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!tektronix!reed!psu-cs!smethers From: smethers@psu-cs.UUCP (Paul Smethers) Newsgroups: comp.sys.mac Subject: Re: Is there a way to get line numbers in MPW? Message-ID: <553@psu-cs.UUCP> Date: 15 Mar 88 11:01:33 GMT References: <2060@phoenix.Princeton.EDU> Reply-To: smethers@psu-cs.UUCP (Paul Smethers) Organization: SmethersBarnes Lines: 25 In article <2060@phoenix.Princeton.EDU> buzz@phoenix (Mahboud Zabetian) writes: >How would I get line numbers for my source files in MPW? When I use the C >compiler, I get error messages and the lines that the errors occured in. >But how do I get the editor to show line numbers so that I can find my errors >more easily? > I don't have my manual handy, so I'm not sure about printing. While editing, however, I'm pretty sure that you can't actually display a line number, but can find one by typing in your worksheet "line xxx" and mpw will select the given line xxx in the window beneath the worksheet, thus placing you on the erroneous line. I also don't use mpw for compiles, but I do use it for "compare" to tell the difference between files from time to time. The compare function generates actual statements surrounded by parethesis that select the file and line number automactially. In "compare", you can simply double-click on the parenthesis and the command becomes selected because of mpw's matching parenthesis ability. Hitting enter does the command. If the compiler generates similar executable errors, you may be able to do the same process to immediatly open the file and go to the line. Paul Smethers SmethersBarnes