Next: Embedding PerlPoint into PerlPoint   Previous: Including Examples   Contents: Contents

Embedded code

Target format code does not necessarily need to be imported by file - it can be directly embedded as well. This means that one can write target language code within the input stream using \EMBED, maybe because you miss a certain feature in the current translator version:



  \EMBED{lang=HTML}
  This is <i><b>embedded</b> HTML</i>. The parser detects <i>no</i>
  Perl Point tag here, except of <b>END_EMBED</b>.
  \END_EMBED

The mandatory lang option specifies which language the embedded code is of. Usually a translator only supports its own target format to be embedded. (You will not be surprised that language values of "perl" and "pp" are special cases - see the related subsections.)

Please note that the \EMBED tag does not accept a tag body to avoid ambiguities. Use \END_EMBED to flag where the embedded code is completed. It is the only recognized tag therein.

Because embedding is not implemented by a paragraph but by a tag, \EMBED can be placed directly in a text like this:


  These \EMBED{lang=HTML}<i>italics</i>\END_EMBED are formatted
  by HTML code.
Next: Embedding PerlPoint into PerlPoint   Previous: Including Examples   Contents: Contents