DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:format

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
plugin:format [2010-02-26 21:45] 192.55.55.37plugin:format [2010-10-10 14:50] – downloadurl lupo49
Line 12: Line 12:
 similar    : graphviz, gnuplot, latex similar    : graphviz, gnuplot, latex
 tags       : media, embed, program tags       : media, embed, program
 +
 +downloadurl: http://math.byu.edu/~grout/format.zip
 ---- ----
  
Line 133: Line 135:
 I've put a short page up demonstrating this plugin at [[http://math.byu.edu/~grout/software/dokuwiki/format-plugin]].  I've put a short page up demonstrating this plugin at [[http://math.byu.edu/~grout/software/dokuwiki/format-plugin]]. 
  
-I've put an other short page up demonstrating this plugin generatimg sequence diagrams. Look at [[http://astade.homeip.net/wiki/doku.php?id=howto:trace2uml_in_dokuwiki|my Wiki page]].\\+I've put an other short page up demonstrating this plugin generating sequence diagrams. Look at [[http://astade.homeip.net/wiki/doku.php?id=howto:trace2uml_in_dokuwiki|my Wiki page]].\\
 This demonstrates how to use it with Trace2UML [[http://trace2uml.tigris.org]] This demonstrates how to use it with Trace2UML [[http://trace2uml.tigris.org]]
 <code php> <code php>
Line 154: Line 156:
  
 On my machine, compiling dpic in safe mode and renaming it to dpic-safe had the consequence that it would not On my machine, compiling dpic in safe mode and renaming it to dpic-safe had the consequence that it would not
-produce output when called by php. Therefore, the command had to be+produce output when called by PHP. Therefore, the command had to be
 <code php> <code php>
                     'command' => '/usr/local/bin/dpic -r @INFILE@ | /usr/local/bin/convert -density 200 - png:- > @MEDIAFILE@'));                     'command' => '/usr/local/bin/dpic -r @INFILE@ | /usr/local/bin/convert -density 200 - png:- > @MEDIAFILE@'));
Line 203: Line 205:
 \\ \\
 Here's my working mscgen section from default.php.  (mscgen is c:\usr\bin\mscgen.exe)\\ Here's my working mscgen section from default.php.  (mscgen is c:\usr\bin\mscgen.exe)\\
-<pre+<code
-/*  mscgen setup */ +  /*  mscgen setup */ 
- $col_fmt = ""; +  foreach (array('mscgen') as $key => $prog) { 
-foreach (array('mscgen') as $key => $prog) { +    $conf[$prog]=array('name' => "MSCGen",
-  $conf[$prog]=array('name' => "MSCGen",+
      'xhtml' => array('ext' => 'png',      'xhtml' => array('ext' => 'png',
            'pre' => "msc{",            'pre' => "msc{",
            'post' => "}",            'post' => "}",
-           'command' => '/usr/bin/'.$prog.' '.$col_fmt.' -Tpng -o "@MEDIAFILE@" "@INFILE@"')); +           'command' => '/usr/bin/'.$prog.' -Tpng -o "@MEDIAFILE@" "@INFILE@"')); 
-+  
-</pre+</code
 + --- // bchartrand, 2010-02-25// 
 +\\ 
 +I have just completed a comment for the [[plugin:chain]] plugin that will apply wiki formatting to syntax text. Since these two plugins are very similar, it should work here too. If you've been interested in bringing in external wiki-formatted text, check it out.\\ 
 +- Jared Meeker (jaredm@tni.com)  25Aug2010
plugin/format.txt · Last modified: 2023-12-21 19:04 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki