Nuxeo Core Developer Guide

XML or XML-like files code style

Updated: January 18, 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 Loubna Benzaama Update src/studio/nuxeo-studio/administering-your-project/
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