Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to change font color in wiki on github

I can't change font color in wiki on github.
<div style="color: red">test</div>
<font color="red">test</font>

like image 992
Camel Avatar asked Sep 13 '16 01:09

Camel


People also ask

How do you change the font color style?

On the Home tab, in the Font group, choose the arrow next to Font Color, and then select a color.

Can you color text in Markdown?

The Markdown syntax has no built-in method for changing text colors. We can use HTML and LaTeX syntax to change the formatting of words: For HTML, we can wrap the text in the <span> tag and set color with CSS, e.g., <span style="color: red;">text</span> . For PDF, we can use the LaTeX command \textcolor{}{} .

Does GitHub Markdown support color?

Background. On the app, I have selected GitHub Flavored in the Markdown options. According to GitHub, colors are allowed.


1 Answers

Unfortunetly, You cannot include style directives in GFM.

Here is the most complete "Markdown Cheatsheet", and it shows that this element <style> is missing.

That being said, you can use diff code style highlighting for red and green:

```diff
+ this will be highlighted in green
- this will be highlighted in red
```
like image 161
grepsedawk Avatar answered Oct 21 '22 10:10

grepsedawk