Skip to content

Text Coloring Tips and Tricks #20379

Description

@JustinPrivitera

@biagas GFM has no options for coloring text. I thought you might be able to if you fell back to raw html as in...<span style="color: red;">This text is red.</span> but that doesn't work.

A hackish way is to take advantage of GFM's latex support and do this...


$${\color{red}Welcome \space \color{lightblue}To \space \color{orange}Stackoverflow}$$

which produces...

$${\color{red}Welcome \space \color{lightblue}To \space \color{orange}Stackoverflow}$$

And it sort of works inline too as in $${\color{red}this\ is\ some\ text\ I\ put\ in\ red.}$$ But you have to bacspace all the spaces for that too.

Originally posted by @markcmiller86 in #19826

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions