字體大小

效果:

h1

h2

h3

h4

h5
h6

程式碼:

#h1
##h2
###h3
####h4
#####h5
######h6

刪除線

效果:

你好嗎

程式碼:

~~你好嗎~~

幫文字上色

效果:

要反紅的文字

color=gray

程式碼:

<font color="red">要反紅的文字<font><br>
<font color=gray>color=gray</font><br>

header效果

效果:

headerheader.

  1. This is the first list item.
  2. This is the second list item.

程式碼:

> ## headerheader. 
> 1.   This is the first list item.
> 2.   This is the second list item.

項目編號

效果:

  • 常數和變數
  • 註解

程式碼:

- 常數和變數
- 註解

註解

效果:

注意: 如果你的程式碼中有不需要改變的值,請使用let關鍵字將它宣告為常數。只將需要改變的值宣告為變數。

程式碼:

>注意:
如果你的程式碼中有不需要改變的值,請使用`let`關鍵字將它宣告為常數。只將需要改變的值宣告為變數。

編號/項目編號

  1. Item 1
  2. Item 2
  3. Item 3
    • Item 3a
    • Item 3b

 


字與字之間的程式碼上字

程式碼:

字與`printf("Hello World\n");`字之間

效果:

字與printf("Hello World\n");字之間


幫程式碼自動上色(程式語言 高亮顯示)

效果:

var shoppingList = [“Six Eggs",“Milk",“Flour",“Baking Powder",“Bananas"]

程式碼:

```swift var shoppingList = [“Six Eggs",“Milk",“Flour",“Baking Powder",“Bananas"] ```


點擊文章內連結,跳到指定位置(未測試成功)

效果:

程式碼:

- [儲存屬性(Stored Properties)](#stored_properties) //目錄
<a name="stored_properties"></a> //點擊後,會到達的地方

表格

效果

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1

程式碼

| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |

水平線

效果:


程式碼:

***

Markdown支援的程式語言請參考:

results matching ""

    No results matching ""