XPATH: Syntax-Highlighting

Are you missing a feature? Request its implementation here.
spyro
Posts: 11
Joined: Fri Jan 16, 2009 1:16 pm

XPATH: Syntax-Highlighting

Post by spyro »

Complex XPATH statements could be very confusing. It would be great if Oxygen could would show the selected xpath statement in a 'editing bubble' like this:

Image

Corresponding brackets could be hightlighted when the cursor is placed in the range between them.

Keep on the great work! :)

spyro
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: XPATH: Syntax-Highlighting

Post by sorin_ristache »

Hello,

You did not include the image with the bubble example ... :)

Did you try the XPath Builder view? Content completion is available in this view based on the structure of the currently edited XML document which helps you to compose long XPath expressions. A history of past executed expressions is also kept in the view.


Regards,
Sorin
spyro
Posts: 11
Joined: Fri Jan 16, 2009 1:16 pm

Re: XPATH: Syntax-Highlighting

Post by spyro »

Thank you. It seems, that the entire picture hosting service is offline...

Here's a mirror:
Image

spyro
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: XPATH: Syntax-Highlighting

Post by sorin_ristache »

Now I understand. Thank you for the image. We will consider adding syntax highlight in XPath expressions in a future version of Oxygen.


Thank you,
Sorin
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: XPATH: Syntax-Highlighting

Post by adrian »

Hi,

This has been implemented in version 13.2 of Oxygen:
What's new in 13.2 wrote:The syntax coloring engine was redesigned for an improved performance and a more accurate detection of the tokens. Different content types mixed in the same file are now highlighted according with the color schemes defined for each content type. Syntax highlight is available for:
  • CSS, JavaScript and PHP code embedded in XHTML files
  • XPath, CSS and JavaScript code in XSLT files
  • XPath expressions in Schematron files
  • XPath expressions in XProc files
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply