What text to HTML converter for PHP would you recommend?

您建议使用PHP转换为PHP转换器的文本?

One of the examples would be Markdown, which is used here at SO. User just types some text into the text-box with some natural formatting: enters at the end of line, empty line at the end of paragraph, asterisk delimited bold text, etc. And this syntax is converted to HTML tags.

其中一个例子是Markdown,它在SO处使用。用户只需在文本框中输入一些自然格式的文本:在行尾输入,段落末尾为空行,用星号分隔粗体文本等。此语法转换为HTML标记。

The simplicity is the main feature we are looking for, there does not need to be a lot of possibilities but those basic that are there should be very intuitive (automatic URL conversion to link, emoticons, paragraphs).

简单性是我们正在寻找的主要功能,不需要很多可能性,但那些基本的应该非常直观(自动URL转换为链接,表情符号,段落)。

A big plus would be if there is WYSIWYG editor for it. Half-wysiwig just like here at SO would be even better.

如果有WYSIWYG编辑器,那将是一大优点。像SO这样的半生态会变得更好。

Extra points would be if it would fit with Zend Framework well.

如果能够很好地适应Zend Framework,那将是额外的分数。

6 个解决方案

#1


Take your pick at http://en.wikipedia.org/wiki/Lightweight_markup_language.

请选择http://en.wikipedia.org/wiki/Lightweight_markup_language。

As for Markdown, there's one PHP parser that I've been using called PHP Markdown, and I especially like the Extra extension.

至于Markdown,我使用的PHP解析器名为PHP Markdown,我特别喜欢Extra扩展。

I have actually taken a stab at extending it with my own (undocumented) features. It's available at GitHub (remember that it's the extra branch I've fixed, not the masteR), if you're interested. I've intended on making it a 'proper fork' for a while, but that's another, largely offtopic, story.

我实际上已经用我自己的(未记录的)功能进行了扩展。它可以在GitHub上找到(记住它是我修复的额外分支,而不是masteR),如果你有兴趣的话。我打算在一段时间内把它变成一个“适当的叉子”,但那是另一个很大程度上是脱离主义的故事。

更多相关文章

  1. PHP用空格分割文本为数组的方法
  2. 仅在我的文本框中验证数字和字母
  3. php,检查文本拆分的正确性
  4. 如何使用Ajax或Jquery填充文本框中的值?
  5. 当excel表格单元格的格式是日期格式非文本格式的时候,phpexcel 应
  6. 从文本文件中读取,然后决定是否要在php中禁用或启用按钮
  7. 可以使用不同文本框编辑的不同弹出窗口?
  8. 从文本框值生成条形码图像
  9. ASP.NET文本框不会失去焦点

随机推荐

  1. [Python]流式模式匹配?
  2. 在需要缓存的时候,谨慎使用python的负下标
  3. <转> Python的优雅技巧
  4. python3生成10个成绩列表,求其平均分
  5. python使用urlopen需要导入什么库
  6. Python -在文本文件中添加日期戳
  7. Django反向url与参数到基于类的视图
  8. Python爬虫-尝试使用人工和OCR处理验证码
  9. leet240. 搜索二维矩阵 II
  10. re表达式中单引号内的双引号(python)[dupli