Frage

Is there a package for it? If not, what should I look into to create a package for it?

This package should highlight levels of parts of a nested backquote form in different colors.

`(a :i-am-in-level-1
    `(a :i-in-level-2
        ,(a :level-1 `(a :level-2))
        ,',(a :level-0)))

For example, level 0 should have no highlight, level 1 might have a light grey background, level 2 is in a darker background, and so on.

War es hilfreich?

Lösung

The rainbow-delimiters package does something similar for parens. You might take inspiration from there.

http://www.emacswiki.org/emacs/RainbowDelimiters/%22rainbow%20delimiters%22

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top