[TxMt] Add scope for phpdoc comments in PHP/Spell-check in comments
Simon Ruderich
simon at ruderich.com
Fri Oct 20 17:03:49 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
I'm using the (newest) PHP-Package and I would like to color normal
comments other then phpdoc comments.
So I changed the PHP Language a bit to perform this. I replace the
normal comment.block.php with this one:
{ name = 'comment.block.php.phpdoc';
begin = '/\*\*';
end = '\*/';
patterns = (
{ name = 'keyword.other.phpdoc.php';
match = '\@(a(ccess|uthor)|c(ategory|
opyright)|global|li(cense|nk)|pa(ckage|ram)|return|s(ee|ince|tatic|
ubpackage)|t(hrows|odo)|v(ar|ersion))\b';
}
);
},
{ name = 'comment.block.php';
begin = '/\*';
end = '\*/';
},
So I have an own scope for the phpdoc comment. I also added @license
as phpdoc keyword. It would be nice if you could add this changes to
the official PHP-Package.
I also have another question: How can I activate the spell-check in
(PHP)comments. I tried to use a Preference Item and added
{ spellChecking = 1; } to it and set the scope to "comment" but it
didn't worked.
Do you have any ideas?
Thanks in advance,
Simon Ruderich
- ----
> privacy is necessary
> using http://gnupg.org
> public key id: 0x6115F804EFB33229 http://ruderich.com/
simonruderich.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFOQF2YRX4BO+zMikRCn6YAKDUCbqHUHmgkX8VMBag367nBI1wVgCfYqUF
sMHhifE1Hs9wR4Np6QP3Bhw=
=nHGU
-----END PGP SIGNATURE-----
More information about the textmate
mailing list