[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdt-dev] Update on Semantic Highlighting
- From: William Candillon <wcandillon@xxxxxxxxx>
- Date: Wed, 26 Aug 2009 14:31:45 +0200
- Delivered-to: firstname.lastname@example.org
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=hF0yNgqubQ0T1Pe/ZHk40MTqA3iACcwKFsLZETG1vUDf/9L24qcDW0nadMTw5VCvBP 8iDdOPAn3ZAwpD0kyvZK2JFy7qUSkmO5eqj46auicl7F9PjM8VpGFTs43aSYIMnSKOk3 JLDke73b+3/A0uRApuKyWstPbxh0W7abHQlb0=
I think that we can come up with very smart semantic rules (using type
inference for instance).
When a plugin developer add a new semantic rule, it is automatically
added to the PHP Syntax Coloring preference page.
This means that no matter what are the rules and where they come from
(PDT or a PDT subplugin), the end user has a total control on the
syntax coloring. The end user can enable/disable rules and change the
style associated to the rule.
Use cases are the SmartyPDT highlighting, or PHPUnit special
highlighting (for annotation, methods that are prefixed with test in a
subtype of the TestCase class) etc.
Let's get it right for PDT first, then we can worry about PDT's subplugins.
On Wed, Aug 26, 2009 at 2:03 PM, Sjaak Eenhuis<exceptione@xxxxxxxxxxx> wrote:
>> I updated the wikipage about the PDT semantic highlighting:
>> You can find the latest version of the patch on at this bug entry:
>> I simplified the API so plugin developers can extend the editor
>> highlighting in the simplest manner, without touching pdt.ui source
>> Please take it for a ride and send me feedback and suggestions.
> Thanks. I wonder what higlighting points didn't you implement already?
> I've been thinking how a plugin developer could do something useful with
> these extension points. Normally the user wants to be in control about the
> appearance and this possible via the preferences page, right?
> Minder SPAM in de verbeterde Windows Live Hotmail
> pdt-dev mailing list