[pmwiki-users] Let me put it a different way...

Patrick R. Michaud pmichaud at pobox.com
Wed Mar 8 21:44:25 CST 2006

On Wed, Mar 08, 2006 at 06:22:09PM -0700, Philip Stitt wrote:
> I just asked a really long question, "Playing Windows Media Files". But
> now that I've thought about it... what I'm really asking is simply
> this: how can I create a command that will cause a pre-defined block of
> content to appear in the page's output? For example, let's say I wanted
> this block of content:
> <div align="center">
>   <center>
>   <table>
>     <tr>
>       <td bgcolor="#FF0000">red</td>
>       <td bgcolor="#FFFF00">yello</td>
>     </tr>
>     <tr>
>       <td bgcolor="#00FF00">green</td>
>       <td bgcolor="#0000FF">blue</td>
>     </tr>
>   </table>
>   </center>
> </div>
> to appear in the page whenever I used this command:
> (:colortable:)
> Is there a simple way to do that in PmWiki? 

HTML output shortened for brevity:

    Markup('colortable', 'directives',
        <div align="center"><center><table>
          <tr><td bgcolor="#FF0000">red</td>
            <td bgcolor="#FFFF00">yello</td></tr>
          <tr><td bgcolor="#00FF00">green</td>
            <td bgcolor="#0000FF">blue</td></tr></table></center></div>'));


More information about the pmwiki-users mailing list