for example, in an xml context, when the developer types an opening tag "<" he is offered a list of tags via autocomplete, contextualized following the dtd or xml schema of the document. as the developer types more letters, the offered choices are filtered to only retain the relevant completions. when the developer finally completes the tag, the editor automatically generates the closing tag.