Monday, July 2, 2012

synIDattr used with matchadd

If I use the matchadd function to highlight a region
given a pattern which is based upon a region,
can I use the id returned by matchadd with the
function synIDattr get get the "fg" and "bg" colors
associated with the highlight group used?
Or, can synIDattr only be used with ids associated with
syntax groups?

I tried and 1) it returned different values on subsequent
runs and 2) I have a 256 color term but it returns only
values between 0 and 15.

Thanks

Richard

--
Quis custodiet ipsos custodes

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: