Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'line Numbers FIX' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
line Numbers FIX
Authored by: Trevor Simmons on Mar 02, '03 08:02:47AM

What you need to do (providing you've installed the PHP syntax
colouring) is go to the /Developer/ProjectBuilder Extras/Specifications
directory and edit PHP.pbfilespec to say:

Identifier = "sourcecode.c.php";
BasedOn = "sourcecode.c";

And edit PHP.pblangspec to say:

BasedOn = "sourcecode.c";

Then restart Project Builder.

What this does in tell Project Builder that PHP is sourcecode and a
variation of C (which automatically gets the gutter and line numbers).
Previously it opened PHP files as empty files w/out the gutter.

I really wish Apple would document this stuff...

Trevor.



[ Reply to This | # ]
line Numbers FIX
Authored by: albertlash on Mar 19, '03 10:14:45AM

I've completed the instructions, but I'm wondering, are the line number supposed to be listed down the side of the file (is that the "gutter")?

This is the only thing I miss in PB. I can't imagine how people could live without it, or why apple would ever not have it implemented for ALL files.

Another question: how can I open .as files, .css files, and .htaccess files?



[ Reply to This | # ]
line Numbers FIX
Authored by: Brian Kendig on Apr 04, '03 11:16:43AM

I think all that's needed, if you want a gutter for line numbers, are those two lines changed in PHP.pbfilespec. When I change that one line in PHP.pblangspec, I lose a whole lot of hilighting.



[ Reply to This | # ]