IntelliJ IDEA: Custom regions folding in xml

intellij-idea

Solution

XML and HTML custom folding regions will be a new feature introduced in upcoming IDEA 2016.3 release (see IDEA-93649).

If you want to use these features now, you can download the IDEA 2016.3 EAP release now.

Problem

I found out it is possible to create custom regions folding in java files with nice line comments as descibed here: http://www.jetbrains.com/idea/webhelp/folding-custom-regions-with-line-comments.html but I can see this only works for java files. Is it somehow possible to make it work in xml files like in pom.xml. What I would like to achieve is to introduce custom regions in dependencies to make it easier to navigate between them.

Original source