no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | using_geany_a_textile_wiki_editor [2013/09/19 20:40] (current) – created first version zdia | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Textile is a markup language written originally in PHP. Textile' | ||
+ | A small PHP programm will call this class and pass the contents of a wiki file to it. The Html formatted output will be saved with the file's name and the extension .html | ||
+ | |||
+ | Then you just enter in the " | ||
+ | |||
+ | php textile.php %f | ||
+ | |||
+ | If you are editing in Geany a file in Textile format, e.g. // | ||
+ | |||
+ | The file // | ||
+ | < | ||
+ | <?php | ||
+ | |||
+ | // takes a filename from the commandline and converts its contents | ||
+ | // to a html format | ||
+ | |||
+ | require_once(' | ||
+ | |||
+ | $textile = new Textile; | ||
+ | |||
+ | $file_parts = pathinfo($argv[1]); | ||
+ | |||
+ | $wiki = file_get_contents($file_parts[' | ||
+ | |||
+ | $html = $textile-> | ||
+ | |||
+ | file_put_contents($file_parts[' | ||
+ | |||
+ | // For untrusted user input, use TextileRestricted instead: | ||
+ | // echo $textile-> | ||
+ | |||
+ | ?> | ||
+ | </ |