<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE root SYSTEM "def.dtd">
<root>
<container>
CURSOR HERE
</container>
</root>
At the location, pointed above, type opening tag <container>. When you finish, closing tag </container> is not automatically inserted, as usual.
This can be understood, because IDEA probably thinks that existing closing </container> matches the closest opening one. But this is somewhat not convenient. With such DTD IDEA could match the furthest tag, and provide auto-completion.
The same behaviour was in Demetra, 6180.
Description
Edit an XML where an element can contain same-named element. I tested this with dtd:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE root SYSTEM "def.dtd">
<root>
<container>
CURSOR HERE
</container>
</root>
At the location, pointed above, type opening tag <container>. When you finish, closing tag </container> is not automatically inserted, as usual.
This can be understood, because IDEA probably thinks that existing closing </container> matches the closest opening one. But this is somewhat not convenient. With such DTD IDEA could match the furthest tag, and provide auto-completion.
The same behaviour was in Demetra, 6180.