Skip to content

Support ANSI coloring in code blocks #1910

Open
@ramonsmits

Description

@ramonsmits

It would be great if the following code block would support ANSI coloring:

[30m	Black Text
[31m	Red Text
[32m	Green Text
[33m	Yellow Text
[34m	Blue Text
[35m	Purple Text
[36m	Cyan Text
[37m	White Text

I tried txt, cmd, bash, shell but none seem to support this (yet..). This would be awesome for sharing log snippets and other console output.

I explicitly only want it in code blocks and not in regular markdown as I don't think it coloring must not be part of the formatting.

Maybe via for example the syntax keyword ansi if it should not be applied to all but I guess it makes sense to apply to all shell related formatters.

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions