Is there a way to highlight a string in a text (but not ALL such strings) in a buffer where font-lock-mode is on.
Let\'s imagine I have a buffer with SQL mode and
Have a look at http://www.emacswiki.org/emacs/HighlightTemporarily.
Both MarkerPens and Highlight provide functions to highlight a region.
Maybe this helps:
(with-current-buffer "foo" (add-text-properties 1 10 '(comment t face highlight)))
Characters 1-10 will be highlited in buffer "foo".