Skip to content

Instantly share code, notes, and snippets.

@JLChnToZ
Last active January 24, 2017 13:59
Show Gist options
  • Select an option

  • Save JLChnToZ/4e0a7c6daf9dd70614372c077365f7c8 to your computer and use it in GitHub Desktop.

Select an option

Save JLChnToZ/4e0a7c6daf9dd70614372c077365f7c8 to your computer and use it in GitHub Desktop.
Text Format in Different Platforms Comparison

Text Format in Different Platforms Comparison

Expected Result HTML *1 Unity3D Rich Text BBCode *1 Markdown *1 Plurk Formatting Syntax Minecraft
Bold <strong>Bold</strong>
<b>Bold</b>
<b>Bold</b> [b]Bold[/b] **Bold**
__Bold__
**Bold** §lBold
Italic <em>Italic</em>
<i>Italic</i>
<i>Italic</i> [i]Italic[/i] *Italic*
_Italic_
*Italic* §oItalic
Underline <u>Underline</u> N/A [u]Underline[/u] N/A *2 _Underline_ §nunderline
Censored <del>Censored</del>
<s>Censored</s>
N/A [s]Censored[/s] ~~Censored~~ --Censored-- §mCensored
Big <font size="5">Big</font>
<big>Big</big>
<size=24>Big</size>*3 [size=24]Big[/size] N/A *2 N/A N/A
Small <font size="2">Small</font>
<small>Small</small>
<size=10>Small</size>*3 [size=10]Small[/size] N/A *2 N/A N/A

Header1

<h1>Header1</h1> N/A *4 [h1]Header1[/h1] # Header1
Header1
=======
N/A N/A
Hyperlink <a href="https://example.com">Hyperlink</a> N/A *5 [url=https://example.com]Hyperlink[/url] [Hyperlink](https://example.com) https://example.com (Hyperlink) N/A
Red <font color="red">Red</font> <color=#FF0000>Red</color> [color=red]Red[/color] N/A *2 N/A §4Red
  • Unordered list
<ul><li>Unordered list</li></ul> N/A [list][*]Unordered list[/list] * Unorderd list
+ Unorderd list
- Unorderd list
N/A N/A
  1. Ordered list
<ol><li>Ordered list</li></ol> N/A [list=1][*]Ordered list[/list] 1. Orderd list N/A N/A
Image <img src="https://dummyimage.com/100.jpg" alt="Image" /> N/A *6 [img]https://dummyimage.com/100.jpg[/img] ![Image](https://dummyimage.com/100.jpg) https://dummyimage.com/100.jpg *7 N/A
Quote
<blockquote>Quote</blockquote> N/A [quote]Quote[/quote] > Quote N/A N/A
Preformatted
<pre><code>Preformatted</code></pre> N/A [code]Preformatted[/code] ```Preformatted``` N/A N/A
Code <code>Code</code> N/A N/A `Code` `Code` N/A

*1: For all syntax in HTML and all formats which will be rendered to HTML can be overrided via CSS style sheets.
*2: For missing syntax in markdown, you may use HTML instead.
*3: Font sizes in Unity3d is relative to screen size and the scale of the containers.
*4: There is no header-like formatting syntax for Unity, instead you should manually format it using other syntax.
*5: There is no shortcut for hyperlink in Unity, you should use button or something equipment to handle the click event and spawn the browser instead.
*6: Use texture or sprite instead.
*7: Pasting links ends with .jpg .png or .gif directly will be parsed as image link automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment