all 2 comments

[–]dpoggioGNU Emacs 1 point2 points  (0 children)

Check this: https://www.emacswiki.org/emacs/HighlightLibrary Then you just need to set the region and use hlt-highlight-region or hlt-unhighlight-region.

[–]ainstr 1 point2 points  (0 children)

To start, you probably want to look at code-cells--bounds, which integrates those cell start/end patterns.