Adding comments and processing instructions

Are you missing a feature? Request its implementation here.
Posts: 1
Joined: Sat Jul 02, 2022 2:15 am

Adding comments and processing instructions

Post by tstevens »

In the desktop author, pressing return opens a menu that contains options to add XML comments and processing instructions as well as elements.
In the web author the menu does not contain these options. Is there a way to enable them in web author?
Gabriel Titerlea
Site Admin
Posts: 77
Joined: Thu Jun 09, 2016 2:01 pm

Re: Adding comments and processing instructions

Post by Gabriel Titerlea »


Indeed, the Comment and Processing Instructions actions are not present in Oxygen XML Web Author.
I've registered an internal ticket to fix this, and we'll update this forum post when we have a solution.

As a workaround you can extend the DITA framework using a framework extension script [1].
You can implement an "Insert Processing Instruction" and an "Insert XML comment" action. And add them to the content-completion menu [2] yourself.

To implement the above actions you can define an action that uses the InsertFragmentOperation to insert these fragments:
- "<!-- -->"
- "<?PITarget PIContent?>"


[1] ... zt_5ry_jnb
[2] ... gh_yzm_knb
Post Reply