Annotations Preferences
Certain types of schemas can include annotations that document the various elements and attributes that they define. Oxygen JSON Editor can display these annotations when offering content completion suggestions. To configure the Annotations preferences, open the Preferences dialog box and go to .
The following options are available:
- Show annotations in Content Completion Assistant
- If selected, Oxygen JSON Editor displays the schema annotations of an element, attribute, or attribute value currently selected in the Content Completion Assistant proposals list.
- Show annotations in tooltip
- If selected, Oxygen JSON Editor displays the annotation of elements and attributes as a tooltip when you hover over them with the cursor in the editing area or in the Elements view. If not selected, tooltips are disabled in all modes.
- Show annotation in HTML format, if possible
- This option allows you to view the annotations associated with an element or attribute in HTML format. If this option is not selected, the annotations are converted and displayed as plain text.
- Prefer DTD comments that start with "doc:" as annotations
-
To address the lack of dedicated annotation support in DTD documents, Oxygen JSON Editor recommends prefixing with the
doc:
particle all comments intended to be shown to the developer who writes an XML validated against a DTD schema.If this option is selected, Oxygen JSON Editor uses the following mechanism to collect annotations:- If at least one
doc:
comment is found in the entire DTD, only comments of this type are displayed as annotations. - If no
doc:
comment is found in the entire DTD, all comments are considered annotations and displayed as such.
If not selected, all comments, regardless of their type, are considered annotations and displayed as such.
- If at least one
- Use all Relax NG annotations as documentation
- If selected, any element outside the Relax NG namespace, that is
http://relaxng.org/ns/structure/1.0
, is considered annotation and is displayed in the annotation window next to the Content Completion Assistant window. When this option is not selected, only elements from the Relax NG annotations namespace, that ishttp://relaxng.org/ns/compatibility/annotations/1.0
are considered annotations.