XCode 3 : Turn on that Scope Depth Syntax Highlighting !

I’m now diving into XCode 3, thanks in no small part to my new black MacBook! One thing I had been looking forward to is the syntax highlighting that shows you the scope of the function or method or code block. Beautiful stuff. I had envisioned it myself several years ago, when I first learned CSS. (I’m sure I’m not the first and obviously not the only…)

Now that XCode 3 finally has code folding, though not as slick as TextMate’s code folding, it will flash the scope depth highlighting colors. But it goes away quickly. Here is how to turn it on to stay (it isn’t obvious or self-apparent).

View>Code Folding>Focus Follows Selection

Or a picture …

2 comments ↓

#1 Alan on 08.29.08 at 4:46 am

I have been searching for some time how to permanently turn on scope depth highlighting in Xcode. Thanks to this page I have finally done it. Thanks for pointing out this useful (but hidden) feature!

#2 Floops on 02.02.09 at 8:56 pm

Hi all out there,

to be honest I am someone who the most of you would call (rightly ;)) as a newbie in cocoa development. That does not mean I do not have any clue, because in the last seven years I did almost a lot of Java, C++ and PHP(5, OOP!) development.

But especially with OS X development and the associated community I am something like a greenhorn.

However, after those seven years I want (and need!!) to get rid of solutions which are too slightly built as for instance TextMate or Smultron. Also I do not want to work any longer as I need with solutions like f.e. Eclipse PDT oder Zend Studio for Eclipse. Of course, the developer of these apps/respektivly frameworks did a great job!

But: What I want is too develop an Application running natively under OS X, which provides featurey like code browsing etc. pp.

My greates problem currently is that I am searching for a “improved” “TextView” - which might be found in a framework or any kind of library or in an open source software project or ANYwhere, where is implemented respectivly which provides a fancy text editor (focussing on web development) in the style of the text editor in Xcode 3.x - of course, ideally implemented with cocoa/obj-c.

I need an improved “TextView”, focussing on the features like
- Code folding
- Show code folding ribbon AND
- Code focus (most important!)

If anyone knows any kind solution - that also could be an implementation in another programming language I know (C, C++, C#, Java, Python, Ruby, PHP, Perl or simular to one of these)

I am thankful for any kind of hint!

Thanks,
Floops.

Leave a Comment