Axelor Doc

Editor widget

Source code (XML, SQL, java, groovy, text ...) can be displayed in a specific widget including syntax highlighting.

Use in a view to a field of type string:

<field name="code" colSpan="4" widget="CodeEditor[syntax=xml|height=500]"
                    showTitle="false" readonly="true" />

Rendering example: Editor widget