Nuxeo Core Developer Guide

XML or XML-like files code style

Updated: August 19, 2019 Page Information Edit on GitHub

XML files Eclipse configuration

Eclipse should be configured to use spaces (not tabs) and an indentation of 2 spaces is used for XML-like code. Line width is 120.

See Window > Preferences > XML > XML Files > Editor.

Option "Insert whitespace before before closing empty tags" should also be checked.

XHTML files Eclipse configuration

XHTML files do not support a default formatting that suits Eclipse, as it gets confused between namespaced tags (JSF tags for instance) and others (standard HTML tags for instance).

But formatting is similar to XML files: use an indentation of 2 spaces.

a month ago manonlumeau Final review
5 years ago Maxime Hilaire 4
5 years ago Guillaume Renard 3
5 years ago Anahide Tchertchian 2
5 years ago Anahide Tchertchian 1
History: Created by Anahide Tchertchian

We'd love to hear your thoughts!

All fields required