Embedded Document

An embedded document is when one document (often a structured text file, or a binary, or anything else) is embedded within another. (This discussion assumes that the result is a linear sequence of bytes/characters--use of more advanced filing systems is beyond the scope of this discussion). A common instance of this found in programming occurs when mixing programming languages--embedding a Perl script or sed script inside a shell script; embedding HTML inside a C program; etc. For purposes of this discussion, we limit ourselves to the case where the enclosing document is a text-based programming language or DomainSpecificLanguage which will be hand-edited; binary embedding is a different topic altogether.

The general problems are as follows:

Several ways to do this are:


See also LiterateProgramming


CategoryDocumentation


EditText of this page (last edited April 5, 2013) or FindPage with title or text search