MCPcopy Create free account
hub / github.com/microsoft/Webwright / highlightRenderedCode

Function highlightRenderedCode

assets/compare_trajectory/app.js:2042–2054  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2040 return trace.events.filter((event) => event.kind !== 'token_snapshot');
2041 },
2042 highlightRenderedCode() {
2043 if (!window.hljs) {
2044 return;
2045 }
2046 this.$nextTick(() => {
2047 document.querySelectorAll('#app pre code').forEach((node) => {
2048 if (node.dataset.highlighted === 'yes') {
2049 delete node.dataset.highlighted;
2050 }
2051 window.hljs.highlightElement(node);
2052 });
2053 });
2054 }
2055 }
2056});
2057

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected