Answer a question

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 doesn’t support the styles anymore?

Currently, I am using the code below which doesn’t work in GitHub.

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

Answers

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)

Logo

ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!

更多推荐