I'm trying to define a custom style which should apply only to a couple of words in a paragraph. When I try to apply it to them, it applies to the whole paragraph instead.
The custom style definition is:

How can I create and apply a custom style definition so that it only takes effect on a part of a paragraph?