Highlight certain Tags in the XMLEditor
Oxygen general issues.
Highlight certain Tags in the XMLEditor
Hello,
We use your Oxygen Eclipse plugin in Version 13.2.
Our issue:
We´d like to highlight certain Tags in the XMLEditor during runtime of the program.
I already implemented a breadcrumb for the XML hierarchy and when you click on one of those breadcrumbs the selected XML TAG will be selected in the XMLEditor.
Now I got a feature request that a certain XML TAG should be highlighted, when I hover over a breadcrumb with the mouse cursor.
Is there maybe a way to alter the CSS of a certain AuthorNode on the fly during runtime, in order to highlight it?
Or could you imagine a different approach to highlight a certain AuthorNode in the XMLEditor?
Best regards,
Simon
We use your Oxygen Eclipse plugin in Version 13.2.
Our issue:
We´d like to highlight certain Tags in the XMLEditor during runtime of the program.
I already implemented a breadcrumb for the XML hierarchy and when you click on one of those breadcrumbs the selected XML TAG will be selected in the XMLEditor.
Now I got a feature request that a certain XML TAG should be highlighted, when I hover over a breadcrumb with the mouse cursor.
Is there maybe a way to alter the CSS of a certain AuthorNode on the fly during runtime, in order to highlight it?
Or could you imagine a different approach to highlight a certain AuthorNode in the XMLEditor?
Best regards,
Simon
Simon Scholz
vogella GmbH
http://www.vogella.com
vogella GmbH
http://www.vogella.com
Re: Highlight certain Tags in the XMLEditor
Hello Simon,
For the Author page we have this API method:
which would allow you to add a highlight between certain offsets (the hovered AuthorNode's start and end offsets for example) with a certain painter.
As a painte you can use an instance of:
You could probably add a caret listener and remove the highlight when the caret is moved.
Regards,
Radu
For the Author page we have this API method:
Code: Select all
ro.sync.exml.workspace.api.editor.page.author.WSAuthorEditorPageBase.getHighlighter()
As a painte you can use an instance of:
Code: Select all
ro.sync.ecss.extensions.api.highlights.ColorHighlightPainter
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service