Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Syntax Highlighting in Wizard previewer
Syntax Highlighting in Wizard previewer [message #32633] Mon, 06 October 2008 05:27 Go to next message
Sheela is currently offline SheelaFriend
Messages: 52
Registered: July 2009
Member
Hi,

I have an eclipse based editor, which has a project and file wizard. My
file wizard allows a user to create a new empty script or pick an already
available script template. These templates are displayed in a previewer in
the wizard. My question is: is there some way to apply syntax highlighting
to the code visible in the previewer? just as we do in the preference
pages for preview text.

Thanks in Advance

Sheela
Re: Syntax Highlighting in Wizard previewer [message #32669 is a reply to message #32633] Mon, 06 October 2008 06:15 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
Hi Sheela,

You can look at the following methods in the DLTK codebase:
org.eclipse.dltk.ui.preferences.AbstractScriptEditorColoring ConfigurationBlock.createPreviewer(Composite)
and
org.eclipse.dltk.debug.ui.breakpoints.ScriptBreakpointProper tyPage.createExpressionEditor(Composite)

Regards,
Alex


Sheela wrote:
> Hi,
>
> I have an eclipse based editor, which has a project and file wizard. My
> file wizard allows a user to create a new empty script or pick an
> already available script template. These templates are displayed in a
> previewer in the wizard. My question is: is there some way to apply
> syntax highlighting to the code visible in the previewer? just as we do
> in the preference pages for preview text.
>
> Thanks in Advance
>
> Sheela
>
Re: Syntax Highlighting in Wizard previewer [message #32736 is a reply to message #32669] Mon, 06 October 2008 12:04 Go to previous message
Sheela is currently offline SheelaFriend
Messages: 52
Registered: July 2009
Member
Hi Alex,

Thanks for your reply. I ll try your suggestion

Regards,
Sheela
Previous Topic:Debugging Tcl
Next Topic:[BUILD] R1.0-I
Goto Forum:
  


Current Time: Sun Nov 23 21:32:46 GMT 2014

Powered by FUDForum. Page generated in 0.01665 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software