MCPcopy Create free account
hub / github.com/sql-js/sql.js / findCode

Function findCode

documentation/javascript/application.js:162–170  ·  view source on GitHub ↗
(pre)

Source from the content-addressed store, hash-verified

160 }
161
162 function findCode(pre) {
163 for (var i = 0; i < pre.childNodes.length; i++) {
164 var node = pre.childNodes[i];
165 if (node.nodeName == 'CODE')
166 return node;
167 if (!(node.nodeType == 3 && node.nodeValue.match(/\s+/)))
168 break;
169 }
170 }
171
172 function blockText(block, ignoreNewLines) {
173 var result = '';

Callers 1

initHighlightingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…