只須要在文本前面加入 ">"html
離離原上草
一歲一枯榮
野火燒不盡
春風吹又生git
若是註釋一行,在">"後面與文字之間加上五個空格github
![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "title text")
展現效果markdown
[link text](https://www.google.com "title text")
展現效果:google
googleurl
沒有選中spa
選中code
html
方法一:只須要在第一行加上四個空格便可htm
public int add(int num1, int num2) { int result = 0; int carry = 0; do { result = num1 ^ num2; carry = (num1 & num2) << 1; num1 = result; num2 = carry; } while (num2 != 0); return num1; }
方法二:加上``` 在代碼段的先後分別加上,這個符號是英文的[~]這個鍵,鍵盤的左上角那個鍵,不要搞錯了圖片
展現:
public int add(int num1, int num2) { int result = 0; int carry = 0; do { result = num1 ^ num2; carry = (num1 & num2) << 1; num1 = result; num2 = carry; } while (num2 != 0); return num1; }
使用markdown插入表格比較麻煩,還不如直接寫html的tabel插入 實例:
| Tables | Are | Cool |
|-------------------|------------------|----------------|
| col 3 is | right-akugbed| $1600 |
| col 2 is | centered | $12 |
| col 1 is | are neat | $1 |
顯示結果:
Tables | Are | Cool |
---|---|---|
col 3 is | right-akugbed | $1600 |
col 2 is | centered | $12 |
col 1 is | are neat | $1 |
```math E = mc^2 ```
展現: