BoxCode


  
  $IMapLinkFmt['Attach:'] =
    "<a class='urllink' href='\$LinkUrl'>\$LinkText</a><a
      class='createlink' href='\$LinkUpload'>&Delta;</a>";
  Markup('Attach', '>img',
    "/\\bAttach:([^\\s$UrlExcludeChars]*[^\\s.,?!$UrlExcludeChars])/e",
    "Keep(MakeLink(\$pagename,'$0','$1'),'L')");
  $LinkUploadCreateFmt = "<a class='createlinktext'
    href='\$LinkUpload'>Attach:\$LinkText</a><a class='createlink'
    href='\$LinkUpload'>&nbsp;&Delta;</a>";

Another example:

    
  $IMapLinkFmt['Attach:'] =
    "<a class='urllink' href='\$LinkUrl'>\$LinkText</a><a
      class='createlink' href='\$LinkUpload'>&Delta;</a>";
  Markup('Attach', '>img',
    "/\\bAttach:([^\\s$UrlExcludeChars]*[^\\s.,?!$UrlExcludeChars])/e",
    "Keep(MakeLink(\$pagename,'$0','$1'),'L')");
  $LinkUploadCreateFmt = "<a class='createlinktext'
    href='\$LinkUpload'>Attach:\$LinkText</a><a class='createlink'
    href='\$LinkUpload'>&nbsp;&Delta;</a>";

 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.21 00.20 MarkupToHTML begin
 3: 00.22 00.21 MarkupToHTML end
 4: 00.23 00.21 MarkupToHTML begin
 5: 00.23 00.22 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 6: 00.24 00.22 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 7: 00.24 00.23 MarkupToHTML end
 8: 00.24 00.23 MarkupToHTML begin
 9: 00.25 00.23 MarkupToHTML end
10: 00.25 00.23 now
Peak memory: 3,717,712 bytes