markdown editor syntax - the text color, size, font and background color settings (turn)
Reprinted Alzh Last post on 2017-03-25 12:09:07 Reads 3145 collection
launched
CSDN the markdown editor is its derivative version extends the Markdown function (such as tables, footnotes, embedded HTML, etc.) is embedded HTML, talk about the next features you need to use inline HTML to achieve.
A color
In the following way markdown text color can be controlled:
浅红色文字:<font color="#dd0000">浅红色文字:</font><br />
深红色文字:<font color="#660000">深红色文字</font><br />
浅绿色文字:<font color="#00dd00">浅绿色文字</font><br />
深绿色文字:<font color="#006600">深绿色文字</font><br />
浅蓝色文字:<font color="#0000dd">浅蓝色文字</font><br />
深蓝色文字:<font color="#000066">深蓝色文字</font><br />
浅黄色文字:<font color="#dddd00">浅黄色文字</font><br />
深黄色文字:<font color="#666600">深黄色文字</font><br />
浅青色文字:<font color="#00dddd">浅青色文字</font><br />
深青色文字:<font color="#006666">深青色文字</font><br />
浅紫色文字:<font color="#dd00dd">浅紫色文字</font><br />
深紫色文字:<font color="#660066">深紫色文字</font><br />
Results are as follows:
Light red text: light red text:
crimson Text: dark red text
light green text: light green text
dark green text: dark green text
blue text: blue character
dark blue text: dark blue text
pale yellow text: shallow yellow text
yellow text: yellow text
light cyan text: light cyan text
teal text: teal text
light purple text: pale purple text
purple text: deep purple text
is actually specific color you can go online to check, using the RGB is a color
here's a comparison:
http://www.114la.com/other/rgb.htm
choose RGB value corresponding to the color you want.
Second, the size of the
size为1:<font size="1">size为1</font><br />
size为2:<font size="2">size为2</font><br />
size为3:<font size="3">size为3</font><br />
size为4:<font size="4">size为4</font><br />
size为10:<font size="10">size为10</font><br />
Results are as follows:
size is. 1: size. 1 is a
size of 2: size 2 to
size is. 3: size is. 3
size is. 4: size. 4 to
size 10: size of 10
Third, the font
<font face="黑体">我是黑体字</font>
<font face="宋体">我是宋体字</font>
<font face="微软雅黑">我是微软雅黑字</font>
<font face="fantasy">我是fantasy字</font>
<font face="Helvetica">我是Helvetica字</font>
Results are as follows:
I am bold
I italicized
me is Microsoft elegant black and
I'm a fantasy word
I Helvetica word
Try a few word the font is possible, I guess the word in the basic fonts are able to achieve it.
Four, background color
The background color is set in accordance with hex color value: # 7FFFD4 |
The background color is set in accordance with hex color value: # FF83FA |
The background color is set in accordance with hex color value: # D1EEEE |
The background color is set in accordance with hex color value: # C0FF3E |
The background color is set in accordance with hex color value: # 54FF9F |
Results are as follows:
<table><tr><td bgcolor=#FF00FF>背景色的设置是按照十六进制颜色值:#7FFFD4</td></tr></table>
<table><tr><td bgcolor=#FF83FA>背景色的设置是按照十六进制颜色值:#FF83FA</td></tr></table>
<table><tr><td bgcolor=#D1EEEE>背景色的设置是按照十六进制颜色值:#D1EEEE</td></tr></table>
<table><tr><td bgcolor=#C0FF3E>背景色的设置是按照十六进制颜色值:#C0FF3E</td></tr></table>
<table><tr><td bgcolor=#54FF9F>背景色的设置是按照十六进制颜色值:#54FF9F</td></tr></table>
Blog Reprinted from: http://blog.csdn.net/manjianchao/article/details/53668280