A source code editor is used to develop multilanguage documents while
providing the advanced editing functionality of secondary editors and
without requiring the programmer to explicitly open and interface with
the secondary editors. The multilanguage document is presented to the
user in a primary application view of the primary editor. Code segments
written in different languages are identified and sent to the appropriate
secondary editors, which in turn create secondary documents that are
transparent to the programmer. As edits are made to the primary
application view of the document, the edits are replicated by the
secondary editors behind the scene. Functionality that is enabled by the
secondary editors, such as syntax coloring, auto-completion, and
validation is identified by the primary editor and replicated in the
primary application view, so as to appear as if the primary editor is
inherently configured with the leveraged functionality of the secondary
editors.