See library Highlight (
You can highlight the text you want in various ways. One way is to use a regexp, with function (command)
hlt-highlight-regexp-region. Or if you locate the region to highlight in another way you can use
Or you can use function
hlt-highlight-regions, which highlights a set of buffer zones, defined by their limit positions.
For example, this highlights buffer positions 1 to 3, 6 to 8, and 12 to 16 using face
(hlt-highlight-regions '((1 3) (6 8) (12 16)) 'highlight)
(If you also use library Zones (
zones.el) then you can use
hlt-highlight-regions interactively, as well as make use of other buffer-zone features.)
In your case, you would apparently just need to convert your information about line and column numbers to buffer positions, then pass the pairs of buffer positions to
It's a bit unfortunate that your input data is in the form of line and column numbers instead of buffer positions or x-y pixel coordinates. Here is code for how to convert line+column data to buffer positions.