Thanks for the info!
Hello,
if you want a low-level solution, you can use `highlight-regexp' from
"hi-lock.el", which is part of vanilla Emacs.
If you want the highlighting to be performed automatically when you
visit the file, you can use `eval' in the file local variable
declarations. Simple example (just create a file with this content to
try):
--8<---------------cut here---------------start------------->8---
I use Emacs, because Emacs is really cool!
Local Variables:
eval: (highlight-regexp "Emacs" "bold")
End:
--8<---------------cut here---------------end--------------->8---
There are different solutions, depending on what you want to do
specifically. If you want syntactical highlighting, it's better to use
font-lock, like in the example from Andreas.
Regards,
Michael.