[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [Dltk-dev] Can DLTK be used to do syntax highlighting in a multiline text field?
|
Hi Lothar,
You can look at the
org.eclipse.dltk.ui.preferences.AbstractScriptEditorColoringConfigurationBlock.createPreviewer(Composite)
and
org.eclipse.dltk.debug.ui.breakpoints.ScriptBreakpointPropertyPage.createExpressionEditor(Composite)
Regards,
Alex
----- Original Message -----
From: "Lothar Werzinger" <lothar@xxxxxxxxxxxxxx>
To: "DLTK Developer Discussions" <dltk-dev@xxxxxxxxxxx>
Sent: Friday, October 3, 2008 12:44:31 AM GMT +06:00 Almaty, Novosibirsk
Subject: Re: [Dltk-dev] Can DLTK be used to do syntax highlighting in a multiline text field?
On Thursday 02 October 2008, Andrey Platov wrote:
> I guess Lothar is looking for something like "Preview Control" we have in
> Syntax Highlighting preference page , right?
That is basically what I had in mind. The scrip snippet is only one of many
items on the "page" of our application. Currently we use just a regular SWT
multiline edit. But of course that is not as user friendly as it could be ;-)
So basically we are looking into DLTK to provide the parsing/syntax
highlighting for us. Especially as we might have to support different
scripting languages in the future (currently our snippets are python only).
> This looks to be doable if you're OK to replace multi-line Text control
> with SourceViewer.
Sounds easy enough. I guess I can look at the code for "Preview Control" to
see how it's done?
Lothar
--
Lothar Werzinger Dipl.-Ing. Univ.
framework & platform architect
Tradescape Inc. - Enabling Efficient Digital Marketplaces
1754 Technology Drive, Suite 128
San Jose, CA 95110
web: http://www.tradescape.biz
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev