Skip to content

Custom syntax highlight on pattern/regex? #362

Answered by akinomyoga
johnalotoski asked this question in Q&A
Discussion options

You must be logged in to vote

I'm sorry for my late reply. I missed your post since I was busy that week.

There is currently no easy interface to configure highlighting patterns. In principle, you could implement a custom layer as shell functions (ble/highlight/layer:<LAYER>/* with <LAYER> being the name of the new layer). The details of implementing a layer is described in a code comment, but it's written in Japanese (so please use machine translations if you are really interested). I think the implementation of the region layer can be referenced as an example.

Maybe, when I have time, I can implement a new layer that offers a simple interface for configuring highlighting by patterns.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@johnalotoski
Comment options

Answer selected by johnalotoski
Comment options

You must be logged in to vote
1 reply
@johnalotoski
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants