[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [pdt-dev] Update on Semantic Highlighting
|
- From: William Candillon <wcandillon@xxxxxxxxx>
- Date: Wed, 26 Aug 2009 14:31:45 +0200
- Delivered-to: pdt-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=RSjcuxS3ZXGoNuu2OPa31wO1eJnFgYZIojgQ97Q1TOo=; b=Rahc1HOo53tAWclmLahkmwsu63CUIqHQXqXfAmoESFM6u7R9pP8B2uxz5SjXa+NErU wkscE2OzvD4+8K0c7KL2AqMgdYCCdNByZuSjzTI70/oegt8HpAvJHNq2nkPFst1KGdlZ aC+drf01oE27TqSoYlkikt6BZB64s53BYNWK0=
- 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.
Best regards,
Wi
On Wed, Aug 26, 2009 at 2:03 PM, Sjaak Eenhuis<exceptione@xxxxxxxxxxx> wrote:
>> I updated the wikipage about the PDT semantic highlighting:
>> http://wiki.eclipse.org/PDT/Dev2Dev/Semantic.
>> You can find the latest version of the patch on at this bug entry:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=271430.
>> I simplified the API so plugin developers can extend the editor
>> highlighting in the simplest manner, without touching pdt.ui source
>> code.
>>
>> 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
> pdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/pdt-dev
>
>