ZAPMcode



(:value:Hello world:)

{(code "{$:value}")}

{(code "Hello world")}

Here's the local/Test.ZAPMcode.php file:

<?php

include_once('cookbook/markupexpr.php');

$MarkupExpr['code'] = 'ZAPMcode($args[0])';
function ZAPMcode($p) {
  return strrev($p);
}


 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.11 00.11 MarkupToHTML begin
 3: 00.11 00.11 MarkupToHTML begin
 4: 00.12 00.11 MarkupToHTML end
 5: 00.12 00.12 MarkupToHTML end
 6: 00.13 00.12 MarkupToHTML begin
 7: 00.14 00.13 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 8: 00.14 00.13 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 9: 00.14 00.13 MarkupToHTML end
10: 00.15 00.14 MarkupToHTML begin
11: 00.15 00.14 MarkupToHTML end
12: 00.15 00.14 now
Peak memory: 3,392,224 bytes