免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: netkiller
打印 上一主题 下一主题

求PHP格式化引擎。 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2007-09-27 11:16 |只看该作者
各位没明白我的意思。

我是做文章发布类似CMS。发帖是用。
我不喜欢那些HTML访word的东西。会有很多垃圾标签。

我想使用trac 那样的风格,或docbook,latex.... 最好简单。

论坛徽章:
0
12 [报告]
发表于 2007-09-27 11:21 |只看该作者
还是不懂,你是要用 img 来做(类似输入公式),还是想用 wikipedia 那种格式(==heading==)?

论坛徽章:
0
13 [报告]
发表于 2007-09-27 11:39 |只看该作者
如果是后者,轻量级的 markup 如何?类似于:


  1. _emphasized_ (e.g., italics)

  2. *strongly emphasized* (e.g., boldface)

  3. * An item in a bulleted (unordered) list
  4. * Another item in a bulleted list
  5. ** Second Level
  6. ** Second Level Items
  7. *** Third level

  8. # An item in an enumerated (ordered) list
  9. # Another item in an enumerated list
  10. ## Another level in an enumerated list

  11. Tables (a | character must be at the beginning and end of every row):

  12. |_. Header |_. Header |_. Header |
  13. | Cell 1 | Cell 2 | Cell 3 |
  14. | Cell 1 | Cell 2 | Cell 3 |

  15. Code:

  16. @code@

  17. Headings: (you must leave a blank line after each heading)

  18. h1(#id). An HTML first-level heading

  19. h2. An HTML second-level heading

  20. h3. An HTML third-level heading

  21. h4. An HTML fourth-level heading

  22. h5. An HTML fifth-level heading

  23. h6. An HTML sixth-level heading

  24. Blockquotes:

  25. bq. This text will be enclosed in an HTML blockquote element.

  26. Links:

  27. "(classname)link text(title tooltip)":link_address

  28. Images:

  29. !imageurl!
复制代码


这个怎么样?Textile,可以直接转换成合法 (X)HTML。

下载:http://jimandlissa.com/project/textilephp
在线测试:http://textism.com/tools/textile/index.php
在线测试 2:http://textile.thresholdstate.com/

论坛徽章:
0
14 [报告]
发表于 2007-09-27 13:46 |只看该作者
应该是PHP的HTML格式化引擎吧?

看看这个http://www.utf.com.cn/article/s1439
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP