Dear pmwiki users!<br><br>I&#39;ve been trying to write a recipe to display WRL files (3D models) in pmwiki. I could get it to work by &quot;hard-wiring&quot; a specific file:<br><br>&lt;?php if (!defined(&#39;PmWiki&#39;)) exit ();
<br>Markup(&#39;wrl&#39;, &#39;directives&#39;,  &#39;/\\(:wrl:\\)/&#39;,<br>
Keep(&quot;&lt;embed
src=&#39;<a href="http://www.mediamachines.com:80/uploads/233/Reflections/3/model.x3d?myuid=0&amp;inst=-712630691&amp;src=codes">http://www.mediamachines.com:80/uploads/233/Reflections/3/model.x3d?myuid=0&amp;inst=-712630691&amp;src=codes
</a>&#39;
WIDTH=&#39;420&#39; HEIGHT=&#39;250&#39; NAME=&#39;flux&#39; TYPE=&#39;model/x3d+xml&#39; DASHBOARD=&#39;0&#39;
LOADSCREEN=&#39;1&#39;/&gt;&lt;/div&gt;&quot;) );<br>?&gt;<br><br>This can also be seen on this test page:<br><a href="http://wico.web-farm.org/index.php/Test/WRLRecipe">http://wico.web-farm.org/index.php/Test/WRLRecipe</a>
<br><br>Now, I am trying to implement (:wrl <a href="http://www.mymodel.3d:">http://www.mymodel.3d:</a>) according to the markup development page but I can&#39;t get it to work:<br><br>
&lt;?php if (!defined(&#39;PmWiki&#39;)) exit ();<br>Markup(&#39;wrl&#39;, &#39;directives&#39;,<br>  &#39;/\\(:wrl (\\d+) :\\)/e&#39;,<br>  Keep(&quot;&lt;embed src=&#39;$1&#39; WIDTH=&#39;420&#39; HEIGHT=&#39;250&#39; NAME=&#39;flux&#39; TYPE=&#39;model/x3d+xml&#39; DASHBOARD=&#39;0&#39; LOADSCREEN=&#39;1&#39;/&gt;&quot;) );
<br>?&gt;<br><br>Any idea about what is wrong or missing?<br>Thanks!<br><br>Benoit<br>