Thank you again

that works well but i think it dosent cover what i had in org. in org i use the ♩ symbol to highlight all the text between the 2 ♩, IE

♩ALL THIS TEXT IS HIGHLIGHTED♩, currently with the above code the ♩ is highlighted but not the text between, is it possible to do achive that with font-lock?

i really appreciate your help!

z


On Fri, Oct 4, 2013 at 11:02 AM, Bastien <bzg@gnu.org> wrote:
Xebar Saram <zeltakc@gmail.com> writes:

> as you said i just want to highlight (BG/FG) specific areas/lines.
> any help would be greatly appreciated!

E.g. you can do this to highlight ♩ with '(:weight
ultra-bold :background "#FFBF1E") :

(font-lock-add-keywords
 'org-mode
 '(("♩" (0 '(:weight ultra-bold :background "#FFBF1E") t))))

"♩" is actually a regular expression, so you can use [♩©] to highlight
both ♩ and ©.

0 means to highlight the entire matching text.

HTH,

--
 Bastien