UPDATE:
After a more careful reading of your question I got inspired. You're asking to highlight text in the tooltip, not just the element itself, so here's a way to do just that with JS (jQuery is used heavily):
$("[data-toggle=popover]").popover({ trigger: 'hover', html: true })
.on('show.bs.popover', function() {
var ele = $(this);
ele.attr('data-original-content', ele.attr('data-content'));
var origContent = ele.attr('data-original-content');
var searchTerm = "refresh";
var searchRegex = new RegExp(searchTerm, 'gi');
var newContent = origContent.replace(searchRegex, function(match) {
return "<span class='green-text'>" + match + "</span>"
});
$(this).attr('data-content', newContent);
})
.on('hidden.bs.popover', function() {
$(this).attr('data-content', $(this).attr('data-original-content'));
});
And here's a bootply to show it working
Basically on the callback for show I pre-parse the content and add in the highlighting like I discussed above. Then on hide I restore it so it doesn't compound on each popover call.
You have to do it this way because the popover node is generated and destroyed dynamically with each show and hide.
That was a fun problem.
Original Answer
Short answer: No, you need JavaScript.
Longer answer: You'll need to use JavaScript to get the content of the link, parse it for the words you want, surround them with <span>
elements with a class that CSS can act on to change their color.
The end result would look like this:
<a class="link1" href="somejavascriptignore" data-tooltip="Click this to refresh the page"><span class="green-text">Refresh</span> page</a>
Rather than do this yourself, try a plugin. Like this one
This isn't exactly a duplicate, but the more detailed answer to your question can be found here: How to highlight text using javascript