0

I have a command file that uses syntax such as -TAG <ARGS> -TAG- to pass arguments to a sub program. I want to Highlight everything between the opening and closing tags with specific background color to make then easy to find, but not change the faces used for the foreground. Is there a way to do this with Emacs font locks without having to define two faces for everything (one with a background and one without)?

1 Answer 1

1

If you specify prepend or append as the OVERRIDE flag in a font-lock keyword, the two faces are joined.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.