Skip to content

Coc Float markdown content code blocks highlighting #5452

@asmodeus812

Description

@asmodeus812

From inspecting the implementation it seems that the coc float parses out the float document content and parses out the differnt sections of valid markdown like headers, etc, including code blocks however code blocks are not trivial to higlight, and the implementation does not attempt to detect the type of langauge the code block is for and higlight it automatically.

I am slightly confused as to how do we use this to replicate the injection higlight that markdown can support with nvim for example since coc is completely parsing the markdown text on its own. At the moment a content that contains code blocks will just be using the Normal color, and if we want to add highlights which the Document type which the float renders has as a property we have to parse out the code block positions ourselves and add the highlighting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions