Function __global->substitute_comment_encapsulated_tempcode

Definitions

sources/tempcode_compiler.php

  • Take some Tempcode and pre-process it for Tempcode portions encapsulated within comments (or similar).This is done so syntax-highlighters don't break, and WYSIWYG-editors don't corrupt the Tempcode.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$data string No No required parameter N/A N/A Input Tempcode

Returns

  • Output Tempcode
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Take some Tempcode and pre-process it for Tempcode portions encapsulated within comments (or similar).This is done so syntax-highlighters don't break, and WYSIWYG-editors don't corrupt the Tempcode.
 *
 * @param  string $data Input Tempcode
 * @return string Output Tempcode
 */

function substitute_comment_encapsulated_tempcode(string $data) : string