Skip to content

[FR]: Syntax highlighting in code snippets in help files in nvim #129

Open
@madskjeldgaard

Description

@madskjeldgaard

Is your feature request related to a problem? Please describe.
It would be nice with proper syntax highlighting in the neovim help files for scnvim.

Describe the solution you'd like
I imagine that the supercollider.vim syntax highlighter is triggered within each code snippet in the help files, but not outside of it, leaving the rest of the help file as is.

Vim has some solutions for this, see :h syn-include.

There's an example described here:
https://vim.fandom.com/wiki/Different_syntax_highlighting_within_regions_of_a_file

It would probably have to end up in a sort of tag around each code snippet for the syntax highlighter to clearly understand the start and end of each code snippet in the help file so that we can setup highlight regions / groups for those.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions