Page 1 of 1

Auto closing tags

Posted: Sat Sep 20, 2003 9:19 pm
by adamv
This is a feature from products like stylus studio that I always really liked.

Simply close the current tag whenever I type </ (or maybe </{tab}). I know the code insite does something like this but I just noticed that it doesn't happen when I don't have a DTD or schema. I write too many adhoc XML documents for that not to be annoying.

A

Posted: Sun Sep 21, 2003 3:51 am
by george
Hi Adam,

Oxygen will always offer you the closing tag, XML comment and CDATA entries in the content completion list. For instance if you have something like
<?xml version="1.0" encoding="UTF-8"?>
<x>
pressing < will show in the completion popup the following items:
  • /x>
  • ![CDATA[]]>
  • !-- -->
I write too many adhoc XML documents
You may try the learn document structure action that will learn the tags and attributes from your partially edited document and offer you code completion proposals based on that.

Best Regards,
George