WYSIWYG editor, markdown or bbcode or wiki or what

£可爱£侵袭症+ 提交于 2021-01-28 19:35:58

问题


I'm finding some editors that say they use bbcode or markdown or wiki, etc.

Can someone explain what this is all about?


回答1:


It's a simplified set of mark-up language tags to help with formatting of content in situations where you do not trust the data being entered, it will prevent users having to enter direct html that may otherwise break a page or permit exploits from working their way into the page's output. These tags will be processed and formatted into HTML by the software.

Typing this answer into Stackoverflow required me to use a form of markup/markdown language :)

eg

[b]Bold[/b]
[url=http://www.google.com]Link Text[/url]
[img]http://www.domain.com/image.jpg[/img]

For wikipedia entries on each type of markup:

  • http://en.wikipedia.org/wiki/BBCode
  • http://en.wikipedia.org/wiki/Help:Wiki_markup
  • http://en.wikipedia.org/wiki/Markdown



回答2:


BBCode, Markdown and wiki are markup languages used for writing the code on web pages that support user-entered content.

This is quite often to include one or more of these markups instead of enabling the whole WYSIWYG editor, especially when usually users enter text without any markup or with limited features.

Googling does not hurt.



来源:https://stackoverflow.com/questions/6170498/wysiwyg-editor-markdown-or-bbcode-or-wiki-or-what

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!