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.11 00.11 MarkupToHTML begin
 3: 00.12 00.12 MarkupToHTML end
 4: 00.13 00.12 MarkupToHTML begin
 5: 00.13 00.13 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 6: 00.14 00.13 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 7: 00.14 00.13 MarkupToHTML end
 8: 00.14 00.13 MarkupToHTML begin
 9: 00.15 00.13 MarkupToHTML end
10: 00.15 00.14 now
Peak memory: 3,391,336 bytes