Re: file types for syntax highlighting
Re: file types for syntax highlighting
- Subject: Re: file types for syntax highlighting
- From: Aaron Voisine <email@hidden>
- Date: Fri, 27 Feb 2004 12:09:46 -0800
Thanks for the help. In .pblangspec files, can you use
regular expressions to match parts of code? I was going
to cheat and change both '' and "" to a string (that's
more correct anyway) and then map any identifier starting
with a '$' to a character just to get a different syntax
highlighting.
The obvious didn't seem to work:
String = (("\"", "\""), ("'", "'"));
Character = ("$[A-Za-z0-9_]+");
or
Character = (("$", "\b"));
What's the correct syntax, or how else might I achieve
syntax highlighting of php variables starting with '$' ?
l8r
Aaron
On Feb 27, 2004, at 8:53 AM, David Ewing wrote:
On Feb 26, 2004, at 10:55 PM, Aaron Voisine wrote:
How can modify Xcode file type associations? It doesn't
recognize .inc files as php or .mk files as Makefiles,
etc...
This has been discussed many times before, so you can search the
archives for more info. The basic idea is that you create .pbfilespec
files and put them in ~/Library/Application Support/Apple/Developer
Tools/Specifications". Look in
"/System/Library/PrivateFrameworks/DevToolsCore.framework/Resources/
Built-in file types.pbfilespec" for what they should look like. Make
your new specs inherit from the existing php and makefile specs.
Also are there any plugins for additional syntax
highlighting? I'd like to visually differentiate
variables from constants and method names.
It is possible to customize the syntax highlighting, but not to this
level. You can look at some .pblangspec files to see some of what's
doable.
Dave
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.