I'm developing some website and I want to put the dokuwiki engine as a text editor, instead of some javascript-based wysiwyg engine.
I copied the code from the link below and tried with it. http://www.dokuwiki.org/devel:parser#basic_invocation
The code supposed to compile the document "syntax.txt" into some xhtml document and echo the compiled document, but what I get is just 'meh.'
If anyone have experience with this problem, please give me some hint.
Thanks.
ps
I added <?php
and ?>
to the code.
I executed like $ php example.php
I changed the path such as DOKU_INC, DOKU_DATA to appropriate path.
I answer myself.
You can use markdown instead of using dokuwiki engine. It is actually the tool that stackoverflow uses.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.