Re: Show/hide whitespace characters (a.k.a. "invisibles") in Xcode editor?
Re: Show/hide whitespace characters (a.k.a. "invisibles") in Xcode editor?
- Subject: Re: Show/hide whitespace characters (a.k.a. "invisibles") in Xcode editor?
- From: "Mattias Arrelid" <email@hidden>
- Date: Fri, 7 Nov 2008 08:55:28 +0100
On Thu, Nov 6, 2008 at 21:49, Chris Espinosa <email@hidden> wrote:
>
> On Nov 6, 2008, at 2:43 AM, Mattias Arrelid wrote:
>
> I don't know the answer, but I would guess that a highly visible character
>
> was chosen, since this is typically a debugging aid, and not something that
>
> you use all the time.
>
> You're probably right, but the interpunct is still a highly visible
> character and more importantly, it cannot be mixed with a full stop
> character - when "Show Spaces" is active, you really cannot tell
> actual dots in the code from spaces. And... as Wikipedia [1] claims,
> most editors represent a space with this glyph (if told to "Show
> Spaces").
>
> The result of this command combined with the new dot syntax introduced
> in Objective-C 2.0 makes the choice of glyph even worse than before :)
>
> Xcode is simply using the built-in facilities in NSLayoutManager for "show
> invisible characters" and "show control characters".
> showsInvisibleCharacters
> I'll take a look to see whether there's a way to override the glyph
> NSLayoutManager uses when drawing these.
That would be awesome!
When reading up on NSLayoutManager, I find:
- (BOOL)showsControlCharacters
- (BOOL)showsInvisibleCharacters
It would also be _really_ nice if Xcode did represent the different
control/invisible characters with _different_ chars, see [1] for an
example.
Regards
Mattias
[1] http://www.grabup.com/uploads/7d7c806550724fc71f601027a066a29e.png?direct
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden