<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8" /></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Try enclosing your ' [-' ... '-]' in a PRR() call.  See PmWiki/FunctionList.<br>
<br><br><div style='font-size:10.0pt;font-family:"Tahoma","sans-serif";padding:3.0pt 0in 0in 0in'>
<hr style='border:none;border-top:solid #E1E1E1 1.0pt'>
<b>From:</b> Randy Brown <randy@brownragfilms.com><br>
<b>Sent:</b> January 14, 2016 4:29:20 PM CST<br>
<b>To:</b> Chuck Goldstein <cgpmw13@codingmaniac.com><br>
<b>Cc:</b> pmwiki-devel@pmichaud.com<br>
<b>Subject:</b> Re: [pmwiki-devel] Custom markup to create a link followed by text<br>
</div>
<br>
Thanks - that gets me closer. The problem now is that the markup isn’t interpreted.<div class=""><br class="" /></div><div class=""><span style="background-color: rgb(255, 255, 255);" class=""><font face="-webkit-standard" class=""><span style="font-size: 15px;" class="">I literally see "[-my ptv value-]” instead of a smaller font of “my ptv value”. Is there a way to get the text interpreted as markup?</span></font></span></div><div class=""><font face="-webkit-standard" class=""><span style="font-size: 15px; background-color: rgb(255, 255, 255);" class=""><br class="" /></span></font></div><div class=""><font face="-webkit-standard" class=""><span style="background-color: rgb(255, 255, 255);" class=""><span style="font-size: 15px;" class="">Here’s what I’ve got:</span><br class="" /></span></font><div class=""><div class=""><br class="" /></div><div class=""><div class="">Markup_e('[[|$', '<[[|',</div><div class="">   "/(?>\\[<a href="smb://[([^|//]]+))//|//s*//$//s*]" class="">\\[([^|\\]]+))\\|\\s*\\$\\s*]</a>]/", </div><div class="">   "Keep(MakeLink(\$pagename, \$m[1],</div><div class="">     MyFunction(MakePageName(\$pagename,\$m[1]))</div><div class="">     ),'L').' [-'.PageTextVar(\$pagename,’MyPTV').'-]'"); </div><div class=""><br class="" /></div><div class="">function MyFunction ($pn) {</div><div class="">    $title = PageVar($pn, '$Title');</div><div class="">    return $title;</div><div class="">}</div></div><div class=""><br class="" /></div><div class="">Randy</div><div class=""><br class="" /></div><div class=""><br class="" /><div><blockquote type="cite" class=""><div class="">On Jan 14, 2016, at 3:55 PM, Chuck Goldstein <<a href="mailto:cgpmw13@codingmaniac.com" class="">cgpmw13@codingmaniac.com</a>> wrote:</div><br class="Apple-interchange-newline" /><div class=""><div class="">You probably want to move the $:MyPTV code from your function to outside the Keep function. <br class="" /><br class="" />Chuck G<br class="" /><br class="" /><br class="" /><br class="" />-------- Original Message --------<br class="" />From: Randy Brown <<a href="mailto:randy@brownragfilms.com" class="">randy@brownragfilms.com</a>><br class="" />Sent: January 14, 2016 3:36:48 PM CST<br class="" />To: Chuck G <<a href="mailto:cgpmw13@codingmaniac.com" class="">cgpmw13@codingmaniac.com</a>><br class="" />Cc: <a href="mailto:pmwiki-devel@pmichaud.com" class="">pmwiki-devel@pmichaud.com</a><br class="" />Subject: Re: [pmwiki-devel] Custom markup to create a link followed by text<br class="" /><br class="" />Thanks for responding. <br class="" /><br class="" />I get the expected result from the following code, but it’s not quite what I want to achieve:<br class="" /><br class="" />Markup_e('[[|$', '<[[|',<br class="" />   "/(?>\\[<a href="smb://[([^|//]]+))//|//s*//$//s*]" class="">\\[([^|\\]]+))\\|\\s*\\$\\s*]</a>]/", <br class="" />   "Keep(MakeLink(\$pagename, \$m[1],<br class="" />     MyFunction(MakePageName(\$pagename,\$m[1]))<br class="" />     ),'L')"); <br class="" /><br class="" />function MyFunction($pn) {<br class="" />    $title = PageVar($pn, '$Title');<br class="" />    return $title.'[-'.PageTextVar($pn,’MyPTV').'-]';<br class="" />}<br class="" /><br class="" />Unfortunately, the above makes $:MyPTV and the sounding brackets all appear as link text. I want everything after the $Title to appear as markup AFTER the link.<br class="" /><br class="" />How would I accomplish that?<br class="" /><br class="" />Randy<br class="" /><br class="" /><br class="" /><blockquote type="cite" class="">On Jan 14, 2016, at 12:45 PM, Chuck G <<a href="mailto:cgpmw13@codingmaniac.com" class="">cgpmw13@codingmaniac.com</a>> wrote:<br class="" /><br class="" />Not sure if this is a problem, but I notice that some of your<br class="" />quotes and approstophes are oblique versions. You might try<br class="" />setting your program editor charset to ascii.<br class="" /><br class="" /></blockquote><br class="" /><br class="" /></div></div></blockquote></div><br class="" /></div></div></div></body></html>