Nuxeo Core Developer Guide

XML or XML-like files code style

Updated: October 22, 2018 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.

2 months ago manonlumeau NXDOC-1650 fix about integrating changes, add mention on multiple attempts
4 years ago Maxime Hilaire 4
4 years ago Guillaume Renard 3
4 years ago Anahide Tchertchian 2
4 years ago Anahide Tchertchian 1
History: Created by Anahide Tchertchian

We'd love to hear your thoughts!

All fields required