BB代码

  • [B], [I], [U], [S] - bold, 斜体, 下划线, Struck-through

    Basic text formatting for the wrapped text.
    示例:
    This is [B]bold[/B] text.
    This is [I]italic[/I] text.
    This is [U]underlined[/U] text.
    This is [S]struck-through[/S] text.
    输出:
    This is bold text.
    This is italic text.
    This is underlined text.
    This is struck-through text.
  • [COLOR=color], [BGCOLOR=color], [FONT=font], [SIZE=size] - Background color, 文本颜色, Font, 尺寸

    Advanced text formatting options for wrapped text.
    示例:
    This is [COLOR=red]red[/COLOR] and [COLOR=#0000cc]blue[/COLOR] text.
    This is [BGCOLOR=#FAA]red[/BGCOLOR] and [BGCOLOR=#AAF]blue[/BGCOLOR] highlighted text.
    This is [FONT=Courier New]Courier New[/FONT] text.
    This is [SIZE=1]small[/SIZE] and [SIZE=7]big[/SIZE] text.
    输出:
    This is red and blue text.
    This is red and blue highlighted text.
    This is Courier New text.
    This is small and big text.
  • [SUB], [SUP] - Subscript, Superscript

    Position wrapped text.
    示例:
    This is [SUB]subscript[/SUB] text.
    This is [SUP]superscript[/SUP] text.
    输出:
    This is subscript text.
    This is superscript text.
  • [URL],[EMAIL] - 链接

    将标签内的文本内容作为链接地址。
    示例:
    [URL]http://www.xenforo.com[/URL]
    [EMAIL]info@xenforo.com[/EMAIL]
    输出:
  • [URL=链接],[EMAIL=地址] - 链接 (高级)

    为文字添加网页和邮件地址连接。
    示例:
    [URL=http://www.xenforo.com]链接到 xenforo.com[/URL]
    [EMAIL=info@xenforo.com]点此给我发邮件[/EMAIL]
    输出:
  • [USER=ID] - 链接至个人空间

    用户个人空间链接。当提到会员时自动插入此链接。
    示例:
    [USER=1]用户名[/USER]
    输出:
  • [IMG] - 图像

    显示图像,标签内为图像的链接地址。
    示例:
    [IMG]https://bbs.pha.pub/[/IMG]
    输出:
  • [VIDEO] - Video

    Displays a video, using the wrapped text as the URL.
    示例:
    [VIDEO]https://bbs.pha.pub/styles/editor-manager/missing-video.mp3[/VIDEO]

    [VIDEO='width:300']https://bbs.pha.pub/styles/editor-manager/missing-video.mp3[/VIDEO]
    输出:


  • [AUDIO] - Audio

    Displays an audio player, using the wrapped text as URL.
    示例:
    [AUDIO]https://bbs.pha.pub/styles/editor-manager/missing-audio.mp3[/AUDIO]
    输出:
  • [MEDIA=site] - 嵌入式媒体

    嵌入可用视频站点的视频,推荐使用编辑器上的视频按钮来添加视频。
    可用的站点: 网易云音乐, Steam, AcFun, Apple Music, bilibiili AV, bilibili BV, Dailymotion, Facebook, Flickr, Giphy, Imgur, Instagram (Legacy), Liveleak, Metacafe, Pinterest, Reddit, SoundCloud, Spotify, TikTok, Tumblr, Twitch, Twitter, Vimeo, 优酷, YouTube
    示例:
    [MEDIA=youtube]oHg5SJYRHA0[/MEDIA]
    输出:
    嵌入的 YouTube 播放器会显示在此处
  • [LIST] - 列表

    显示项目符号或编号列表。
    示例:
    [LIST]
    [*]Bullet 1
    [*]Bullet 2
    [/LIST]
    [LIST=1]
    [*]Entry 1
    [*]Entry 2
    [/LIST]
    输出:
    • Bullet 1
    • Bullet 2
    1. Entry 1
    2. Entry 2
  • [LEFT], [RIGHT], [CENTER], [JUSTIFY] - Text alignment

    改变文字对齐方式。
    示例:
    [LEFT]Left-aligned[/LEFT]
    [CENTER]Center-aligned[/CENTER]
    [RIGHT]Right-aligned[/RIGHT]
    [JUSTIFY]This is a justified text block. This is a justified text block. This is a justified text block. This is a justified text block. This is a justified text block. This is a justified text block.[/JUSTIFY]
    输出:
    Left-aligned​
    Center-aligned​
    Right-aligned​
    This is a justified text block. This is a justified text block. This is a justified text block. This is a justified text block. This is a justified text block. This is a justified text block.​
  • [QUOTE] - 引用文字

    显示由其它位置引用文字。您可以指定引用的属性。
    示例:
    [QUOTE]引用文字[/QUOTE]
    [QUOTE=某人]他说了一些什么事。[/QUOTE]
    输出:
    引用文字
    某人 说:
    他说了一些什么事。
  • [SPOILER] - 隐藏内容

    隐藏文本必须点击后查看。
    示例:
    [SPOILER]隐藏内容[/SPOILER]
    [SPOILER=隐藏标题]隐藏内容[/SPOILER]
    输出:
    隐藏内容
    隐藏内容
  • [ISPOILER] - Inline text containing spoilers

    隐藏文本必须点击后查看。
    示例:
    You have to click the following [ISPOILER]word[/ISPOILER] to see the content.
    输出:
    You have to click the following word to see the content.
  • [CODE] - 显示源代码

    以程序源代码的方式显示文本,并可对其中的关键字进行高亮显示。
    示例:
    通用代码:
    [CODE]通用代码[/CODE]

    丰富代码:
    [CODE=rich][COLOR=red]丰富[/COLOR]
    代码[/CODE]

    PHP代码:
    [CODE=php]echo $hello . ' world';[/CODE]

    JS代码:
    [CODE=js]var hello = 'world';[/CODE]
    输出:
    通用代码:
    代码:
    通用代码

    丰富代码:
    丰富的(BB 代码):
    丰富
    代码

    PHP代码:
    PHP:
    echo $hello . ' world';

    JS代码:
    代码:
    var hello = 'world';
  • [ICODE] - 显示内联源代码

    允许在正常的贴子内容中内联显示代码。语法不会高亮显示。
    示例:
    内联代码段 [ICODE] 是一种显示内联代码的便捷方式[/ICODE]。

    内联代码段 [ICODE=rich] 中的丰富格式 [COLOR=red] 也[/COLOR] [U] 支持 [/U][/ICODE]。
    输出:
    内联代码段 是一种显示内联代码的便捷方式

    内联代码段 中的丰富格式 支持
  • [TABLE] - Tables

    Special markup to display tables in your content.
    示例:
    [TABLE]
    [TR]
    [TH]Header 1[/TH]
    [TH]Header 2[/TH]
    [/TR]
    [TR]
    [TD]Content 1[/TD]
    [TD]Content 2[/TD]
    [/TR]
    [/TABLE]
    输出:
    Header 1Header 2
    Content 1Content 2
  • [TABLE=class] - Tables (Advanced)

    Advanced table styling.
    示例:
    Option adds additional styling.
    [TABLE=noborder]
    [TR]
    [TH]Header 1[/TH]
    [TH]Header 2[/TH]
    [/TR]
    [TR]
    [TD]Content 1[/TD]
    [TD]Content 2[/TD]
    [/TR]
    [/TABLE]

    Multiple styles can be combined.
    [TABLE=collapse,right,nobackground]
    [TR]
    [TH]Header 1[/TH]
    [TH]Header 2[/TH]
    [/TR]
    [TR]
    [TD]Content 1[/TD]
    [TD]Content 2[/TD]
    [/TR]
    [/TABLE]

    [TABLE=collapse,center,alternate]
    [TR]
    [TH]Header 1[/TH]
    [TH]Header 2[/TH]
    [/TR]
    [TR]
    [TD]Content 1[/TD]
    [TD]Content 2[/TD]
    [/TR]
    [TR]
    [TD]Content 1[/TD]
    [TD]Content 2[/TD]
    [/TR]
    [/TABLE]
    输出:
    Option adds additional styling.
    Header 1Header 2
    Content 1Content 2

    Multiple styles can be combined.
    Header 1Header 2
    Content 1Content 2

    Header 1Header 2
    Content 1Content 2
    Content 1Content 2
  • [HEADING=level] - 标题级别 1 到 3

    将文本标记为结构化标题以提高机器可读性
    示例:
    [HEADING=1]大标题[/HEADING]
    该文本位于一个主要标题下,用于分隔文章的主要部分。

    [HEADING=2]小标题[/HEADING]
    当您需要细分文章的主要部分时,请使用 2 级次要标题。

    [HEADING=3]副标题[/HEADING]
    如果你需要额外的细分,你可以降到第 3 级。
    输出:

    大标题​

    该文本位于一个主要标题下,用于分隔文章的主要部分。

    小标题​

    当您需要细分文章的主要部分时,请使用 2 级次要标题。

    副标题​

    如果你需要额外的细分,你可以降到第 3 级。
  • [INDENT] - 文字缩进

    使文字产生缩进效果,可以嵌套使用。
    示例:
    正常文字
    [INDENT]缩进文字
    [INDENT]更多缩进[/INDENT]
    输出:
    正常文字
    缩进文字
    更多缩进​
  • [PLAIN] - 原始文字

    行文本禁用BB代码转换。
    示例:
    [PLAIN]这是[B]粗体[/B]文字。[/PLAIN]
    输出:
    这是[B]粗体[/B]文字。
  • [ATTACH] - 插入附件

    插件附件至指定的位置。如果附件为图像,点击相应的按钮,可插入图片的缩略图或全尺寸图片。
    示例:
    缩略图: [ATTACH]123[/ATTACH]
    完整尺寸: [ATTACH=full]123[/ATTACH]
    输出:
    附件内容将显示在此处。
  • [HIDE], [HIDEPOSTS], [HIDEREPLY], [HIDETHANKS], [HIDEREPLYTHANKS], [HIDEGROUP] - Hide content

    Hides wrapped text until certain conditions are fullfilled.
    示例:
    [HIDE]Hides wrapped content.[/HIDE]

    [HIDEPOSTS]Hides until user reached number of posts.[/HIDEPOSTS]

    [HIDEREPLY]Hides content until viewer replied to thread.[/HIDEREPLY]

    [HIDETHANKS]Hides content until viewer reacted to content.[/HIDETHANKS]

    [HIDEREPLYTHANKS]Hides content until viewer replied to thread or reacted to content.[/HIDEREPLYTHANKS]

    [HIDEGROUP=administrator]Hides content for non-administrators.[/HIDEGROUP]
    输出:
    Hidden content
    You need to reply to this thread in order to see this content.
    Hidden content
    You need -1 more posts to view this content
    Hidden content
    You need to reply to this thread in order to see this content.
    Hidden content
    You need to react to this post in order to see this content.
    Hidden content
    You need to reply to this thread or react to this post in order to see this content.
    Hidden content
    You need to be in at least one of the following groups to see this content: