Skip to content

Custom highlights #138

Open
Open
@albfan

Description

@albfan

Using functions to create rgb colors is pretty command in UI, if you want to check what color you're creating would be interesting to add custom highlights for a file:

Real example:

Defining colors for a graph point:

https://gitlab.gnome.org/GNOME/gnome-power-manager/-/blob/master/src/gpm-statistics.c#L794

Captura de pantalla de 2020-08-23 14-07-01

Adding comments after each line (and converting to hex is a workaround:

Captura de pantalla de 2020-08-23 14-04-57

but would be nice if we are able to highlight just the function:

Captura de pantalla de 2020-08-23 14-28-02

That would be something like automatize:

:syn match BGFF0000 "255, 0, 0"
:syn match BG0000FF "0, 0, 255"
:syn match BGC80000 "200, 0, 0"
:syn match BG0000c8 "0, 0, 200"
:syn match BGFFFFFF "255, 255, 255"
:syn match BG00FF00 "0, 255, 0"

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions