Say, but not super easy. There is no CSS way to do this.
Basically, you will need to use Javascript and iterate over all the nodes. If this is node text, you can find it for "R" and then replace R with<span style="color:red">R</span>
, , , , "highlight", , , CSS. , , . , , node, , , , , (script ?), .
function updateNodes(node) {
if (node.nextSibling)
updateNodes(node.nextSibling);
if (node.nodeType ==8) return;
if (node.firstChild)
updateNodes(node.firstChild);
if (node.nodeValue) {
if (node.nodeValue.search(/[Rr]/) > -1){
var span=document.createElement("span");
var remainingText = node.nodeValue;
var newValue='';
while (remainingText.search(/[Rr]/) > -1){
var rPos = remainingText.search(/[Rr]/);
var bit = remainingText.substr(0,rPos);
var r = remainingText.substr(rPos,1);
remainingText=remainingText.substr(rPos+1);
newValue+=bit;
newValue+='<span style="color:red">';
newValue+=r;
newValue+='</span>';
}
newValue+=remainingText;
span.innerHTML=newValue;
node.parentNode.insertBefore(span,node);
node.parentNode.removeChild(node);
}
}
}
function replace(){ updateNodes(document.body);
}