Nuxeo Core Developer Guide

XML or XML-like files code style

Updated: June 24, 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.

25 days ago manonlumeau NXDRIVE-1725: Document what local actions are reflected on the server
4 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