I am creating a very simple cms for my site and rather than using html, I'd like to insert content in the same kind of wiki-format that's used by the Trac project.
我正在为我的网站创建一个非常简单的cms,而不是使用html,我想插入与Trac项目使用的wiki格式相同的内容。
Do you know of any open-source php scripts/classes that I can grab and use for this?
你知道我可以抓取并使用的任何开源php脚本/类吗?
Note: I am not trying to create a wiki site. Just that formatting aspect - like how this stack exchange site accepts wiki mark-up and renders it nicely.
注意:我不是要创建一个wiki站点。只是格式化方面 - 就像这个堆栈交换站点如何接受维基标记并很好地呈现它。
2 个解决方案
#1
2
After doing some more research, I think I've found it.
经过一些研究,我想我已经找到了。
The Forever For Now wiki-syntax-to-html parser is pretty much the same as the formatting on the Trac project.
Forever For Now wiki-syntax-to-html解析器与Trac项目上的格式几乎相同。
~I have not looked at the code yet, but its pretty likely to be cool. (like Fonzie)~
〜我还没看过代码,但很可能很酷。 (像Fonzie)〜
Edit - I've, now, looked at the code and its beautiful and elegant and does the job.
编辑 - 我现在看着代码,它的美丽和优雅,并完成了工作。
#1
2
After doing some more research, I think I've found it.
经过一些研究,我想我已经找到了。
The Forever For Now wiki-syntax-to-html parser is pretty much the same as the formatting on the Trac project.
Forever For Now wiki-syntax-to-html解析器与Trac项目上的格式几乎相同。
~I have not looked at the code yet, but its pretty likely to be cool. (like Fonzie)~
〜我还没看过代码,但很可能很酷。 (像Fonzie)〜
Edit - I've, now, looked at the code and its beautiful and elegant and does the job.
编辑 - 我现在看着代码,它的美丽和优雅,并完成了工作。