如何在github的风味减价中给文本加上颜色? [英] How to color text in github's flavoured markdown?

查看:139
本文介绍了如何在github的风味减价中给文本加上颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为需要包含在git存储库中的文章中的文本块添加颜色,该文档可供人们访问。我正在尝试着色一个词来带来理想的效果。有没有办法使用css样式颜色文本,因为github不支持样式了?



目前我使用下面的代码不能在github中工作。帮助表示赞赏。

 < center> < h1> 2014年< span style =color:red>红色< / span>< / h1> < /中心],[ 


解决方案

现在没有这种功能可用。另一种方法是使用链接为其着色为蓝色:

 #2014,[Blue](#)$ b的年份$ b  

这将创建以下输出:



如果你真的想要另一种颜色,另一种选择是使用图片(例如



I am trying to color a block of text which needs to be included in an article in a git repository which is accessible to people. I am trying to color a word to bring the desired effect. Is there a way to use css styles to color the text since github doesnt support the styles anymore?

Currently I am using the code below which doesnt work in github. Help is appreciated.

<center> <h1>2014, The year of <span style="color:red">Red</span></h1> </center>

解决方案

There is no such feature available right now. An alternative could be to color it in blue using links:

# 2014, The year of [Blue](#)

That would create the following output:

If you really want to have another color, another alternative is to use an image (e.g. like this one).

Then you can include it like below:

# 2014, The year of ![](https://cloud.githubusercontent.com/assets/2864371/10368192/cad27ed0-6ddc-11e5-8150-4f9c14ab9602.png)

这篇关于如何在github的风味减价中给文本加上颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆