Code căn bản trên Xambiz

  • [B], [I] - Bôi đậm và in nghiêng

    Nếu bạn muốn bôi đậm hoặc in nghiêng một đoạn chữ nào đó, bạn có thể làm thế này
    Ví dụ:
    Đây là cách [B]bôi đậm[/B] chữ.
    Đây là cách [I]in nghiêng[/I] chữ.
    Kết quả tạo ra:
    Đây là cách bôi đậm chữ.
    Đây là cách in nghiêng chữ.
  • [COLOR=Màu sắc], [FONT=Tên phông chữ], [SIZE=Cỡ chữ] - Màu chữ, phông chữ và cỡ chữ

    Bạn có thể thay đổi màu sắc, phông chữ và cỡ chữ bằng cách sau
    Ví dụ:
    Đây là chữ [COLOR=red]màu đỏ[/COLOR] và chữ [COLOR=#0000cc]màu xanh[/COLOR].
    Đây là phông chữ [FONT=Courier New]Courier New[/FONT].
    Đây là chữ nhỏ [SIZE=1]cỡ 1[/SIZE] còn đây là chữ lớn [SIZE=7]cỡ 7[/SIZE].
    Kết quả tạo ra:
    Đây là chữ màu đỏ và chữ màu xanh.
    Đây là phông chữ Courier New.
    Đây là chữ nhỏ cỡ 1 còn đây là chữ lớn cỡ 7.
  • [URL], [EMAIL] - Chèn link hoặc email

    Đây là cách chèn link hoặc email vào trong văn bản
    Ví dụ:
    Đây là trang chủ Xambiz: [URL]https://xambiz.vn[/URL]
    Đây là email Xambiz: [EMAIL][email protected][/EMAIL]
    Kết quả tạo ra:
    Đây là trang chủ Xambiz: https://xambiz.vn
    Đây là email Xambiz: [email protected]
  • [URL=đường link], [EMAIL=địa chỉ email] - Biến một đoạn chữ thành liên kết hoặc email có thể nhấn vào

    Đây là cách khiến cho một văn bản thông thường trở thành một văn bản có thể nhấn vào
    Ví dụ:
    [URL=https://xambiz.vn]Nhấn vào để truy cập Xambiz[/URL]
    [[email protected]]Nhấn vào để mở Email Xambiz[/EMAIL]
    Kết quả tạo ra:
  • [USER=Mã số người dùng] - Liên kết tới một người dùng nào đó

    Bạn có thể liên kết một văn bản với một người dùng nào đó bằng cách này
    Ví dụ:
    [USER=1]Đây là tài khoản có mã số X2[/USER]
    Kết quả tạo ra:
  • [IMG] - Chèn hình ảnh bằng URL

    Đây là cách chèn một hình ảnh vào trong văn bản bằng link ảnh
    Ví dụ:
    [IMG]https://social.telwit.com/_tab/content/images/logo.png[/IMG]
    Kết quả tạo ra:
    logo.png
  • [MEDIA=site] - Embedded Media

    Embeds media from approved sites into your message. It is recommended that you use the media button in the editor tool bar.
    Khuyến khích: Apple Music, Dailymotion, Facebook, Flickr, Giphy, Imgur, Instagram, Pinterest, Reddit, SoundCloud, Spotify, TikTok, Tumblr, Twitch, Twitter, Vimeo, YouTube
    Ví dụ:
    [MEDIA=youtube]kQ0Eo1UccEE[/MEDIA]
    Kết quả tạo ra:
    An embedded YouTube player would appear here.
  • [LIST] - Lists

    Displays a bulleted or numbered list.
    Ví dụ:
    [LIST]
    [*]Bullet 1
    [*]Bullet 2
    [/LIST]
    [LIST=1]
    [*]Entry 1
    [*]Entry 2
    [/LIST]
    Kết quả tạo ra:
    • Bullet 1
    • Bullet 2
    1. Entry 1
    2. Entry 2
  • [LEFT], [CENTER], [RIGHT] - Text alignment

    Changes the alignment of the wrapped text.
    Ví dụ:
    [LEFT]Left-aligned[/LEFT]
    [CENTER]Center-aligned[/CENTER]
    [RIGHT]Right-aligned[/RIGHT]
    Kết quả tạo ra:
    Left-aligned​
    Center-aligned​
    Right-aligned​
  • [QUOTE] - Quoted text

    Displays text that has been quoted from another source. You may also attribute the name of the source.
    Ví dụ:
    [QUOTE]Quoted text[/QUOTE]
    [QUOTE=A person]Something they said[/QUOTE]
    Kết quả tạo ra:
    A person:
    Something they said
  • [SPOILER] - Text containing spoilers

    Hides text that may contain spoilers so that it must be clicked by the viewer to be seen.
    Ví dụ:
    [SPOILER]Simple spoiler[/SPOILER]
    [SPOILER=Spoiler Title]Spoiler with a title[/SPOILER]
    Kết quả tạo ra:
    Simple spoiler
    Spoiler with a title
  • [ISPOILER] - Inline text containing spoilers

    Allows you to display text inline among normal content which hides text that may contain spoilers and must be clicked by the viewer to be seen.
    Ví dụ:
    You have to click the following [ISPOILER]word[/ISPOILER] to see the content.
    Kết quả tạo ra:
    You have to click the following word to see the content.
  • [CODE] - Programming code display

    Displays text in one of several programming languages, highlighting the syntax where possible.
    Ví dụ:
    General code:
    [CODE]General
    code[/CODE]

    Rich code:
    [CODE=rich][COLOR=red]Rich[/COLOR]
    code[/CODE]

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

    JS code:
    [CODE=javascript]var hello = 'world';[/CODE]
    Kết quả tạo ra:
    General code:
    Code:
    General
    code

    Rich code:
    Rich (BB code):
    Rich
    code

    PHP code:
    PHP:
    echo $hello . ' world';

    JS code:
    JavaScript:
    var hello = 'world';
  • [ICODE] - Inline programming code display

    Allows you to display code inline among normal post content. Syntax will not be highlighted.
    Ví dụ:
    Inline code sections [ICODE]are a convenient way[/ICODE] of displaying code inline.

    Rich formatting within inline code sections [ICODE=rich]is [COLOR=red]also[/COLOR] [U]supported[/U][/ICODE].
    Kết quả tạo ra:
    Inline code sections are a convenient way of displaying code inline.

    Rich formatting within inline code sections is also supported.
  • [INDENT] - Text indent

    Indents the wrapped text. This can be nested for larger indentings.
    Ví dụ:
    Regular text
    [INDENT]Indented text[/INDENT]
    [INDENT=2]More indented[/INDENT]
    Kết quả tạo ra:
    Regular text
    Indented text​
    More indented​
  • [TABLE] - Tables

    Special markup to display tables in your content.
    Ví dụ:
    [TABLE]
    [TR]
    [TH]Header 1[/TH]
    [TH]Header 2[/TH]
    [/TR]
    [TR]
    [TD]Content 1[/TD]
    [TD]Content 2[/TD]
    [/TR]
    [/TABLE]
    Kết quả tạo ra:
    Header 1Header 2
    Content 1Content 2
  • [HEADING=level] - Headings levels 1 to 3

    Marks text as a structured heading to facilitate machine readability.
    Ví dụ:
    [HEADING=1]Major heading[/HEADING]
    This text comes under a major heading, used to separate the primary sections of an article.

    [HEADING=2]Minor heading[/HEADING]
    When you need to subdivide the primary sections of an article, use a level 2 minor heading.

    [HEADING=3]Subheading[/HEADING]
    If you require additional subdivision, you may drop to level 3.
    Kết quả tạo ra:

    Major heading​

    This text comes under a major heading, used to separate the primary sections of an article.

    Minor heading​

    When you need to subdivide the primary sections of an article, use a level 2 minor heading.

    Subheading​

    If you require additional subdivision, you may drop to level 3.
  • [PLAIN] - Plain text

    Disables BB code translation on the wrapped text.
    Ví dụ:
    [PLAIN]This is not [B]bold[/B] text.[/PLAIN]
    Kết quả tạo ra:
    This is not [B]bold[/B] text.
  • [ATTACH] - Attachment insertion

    Inserts an attachment at the specified point. If the attachment is an image, a thumbnail or full size version will be inserted. This will generally be inserted by clicking the appropriate button.
    Ví dụ:
    Ảnh nhỏ: [ATTACH]123[/ATTACH]
    Full size: [ATTACH=full]123[/ATTACH]
    Kết quả tạo ra:
    The contents of the attachments would appear here.
Back
Top