Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Associating an XML processing instruction syntax with an editor plugin
Associating an XML processing instruction syntax with an editor plugin [message #134106] Mon, 22 August 2005 10:05 Go to next message
Eclipse UserFriend
Is there anyway to associate the syntax contained within an XML
processing instruction with a particular editor?

I would like to be able to have at a minimum, syntax highlighting and
preferably code outlining support for PHP code contained within a PI of
my XML document. Is there a way to associate my TruStudio PHP plugin
with these PIs or am I looking at the problem in the wrong direction?

Any advise/assistance would be very much appreicated.

--Dion
Re: Associating an XML processing instruction syntax with an editor plugin [message #134426 is a reply to message #134106] Tue, 23 August 2005 11:40 Go to previous message
Eclipse UserFriend
Originally posted by: amywu.us.DELETETHISPART.ibm.com

You cannot associate part of a document to a different editor. But you
could be able to associate part of a document to a different editor
configuration.
This is done through different partition types and
sourceviewerconfiguration.
org.eclipse.jst.jsp.ui.internal.provisional.StructuredTextVi ewerConfiguratio
nJSP is a good example. This is the viewer configuration that is used by
the JSP Editor. In it, you can see that when java partition regions are
encountered, the java editor's viewer configurations are used instead (see
getDoubleClickStrategy) That's how you get some java editor type behavior
in java regions in the jsp editor.


"Dion Barrier" <dion.barrier@uwrf.edu> wrote in message
news:decm42$ufe$1@news.eclipse.org...
> Is there anyway to associate the syntax contained within an XML
> processing instruction with a particular editor?
>
> I would like to be able to have at a minimum, syntax highlighting and
> preferably code outlining support for PHP code contained within a PI of
> my XML document. Is there a way to associate my TruStudio PHP plugin
> with these PIs or am I looking at the problem in the wrong direction?
>
> Any advise/assistance would be very much appreicated.
>
> --Dion
Previous Topic:How to disable the JSP editor warnings on the right side of the editor?
Next Topic:JSP Fragment Issue 87351
Goto Forum:
  


Current Time: Sun Jul 27 01:43:40 EDT 2025

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

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

Back to the top