diff --git a/index.html b/index.html index 547167f..704e1a4 100644 --- a/index.html +++ b/index.html @@ -2316,6 +2316,12 @@ consider pick then apply, i.e changeColorLastId() but for next Id */ +jxrhighlight(){ + [...document.querySelectorAll("[value]")] + .filter( el => (el.getAttribute("value").match(/^jxr /))) + .map( el => el.setAttribute("troika-text", {colorRanges: {0: 0x0099ff, 3: 0xffffff}}) ) + // see also generalization via https://shiki.matsu.io custom renderers +}