Lines Matching refs:code

303 				code
325 code = target[propertyName];
329 code = stripCData(code);
337 element = highlighter.getDiv(code);
839 function processTabs(code, tabSize) argument
846 return code.replace(/\t/g, tab);
856 function processSmartTabs(code, tabSize) argument
858 var lines = splitLines(code),
879 code = eachLine(code, function(line)
898 return code;
1002 function getMatches(code, regexInfo) argument
1016 while((match = XRegExp.exec(code, regexInfo.regex, pos)) != null)
1035 function processUrls(code) argument
1039 return code.replace(sh.regexLib.url, function(m)
1134 code = [] variable
1138 code.push(lines[i].innerText || lines[i].textContent);
1141 code = code.join('\r');
1144 code = code.replace(/\u00a0/g, " ");
1147 textarea.appendChild(document.createTextNode(code));
1217 { regex: scriptBrush.htmlScript.code, func: process }
1228 var code = match.code,
1239 result = getMatches(code, regexList[i]);
1306 findMatches: function(regexList, code) argument
1314 result = result.concat(getMatches(code, regexList[i]));
1359 figureOutLineNumbers: function(code) argument
1365 eachLine(code, function(line, index)
1392 getLineHtml: function(lineIndex, lineNumber, code) argument
1407 return '<div class="' + classes.join(' ') + '">' + code + '</div>';
1416 getLineNumbersHtml: function(code, lineNumbers) argument
1419 count = splitLines(code).length,
1432 code = lineNumber == 0 ? sh.config.space : padNumber(lineNumber, pad)
1435 html += this.getLineHtml(i, lineNumber, code);
1502 getMatchesHtml: function(code, matches) argument
1528 result += wrapLinesWithCode(code.substr(pos, match.index - pos), matchBrushName + 'plain')
1536 result += wrapLinesWithCode(code.substr(pos), getBrushNameCss() + 'plain');
1546 getHtml: function(code)
1573 code = trimFirstAndLastLines(code)
1580 code = this.getParam('smart-tabs') == true
1581 ? processSmartTabs(code, tabSize)
1582 : processTabs(code, tabSize)
1587 code = unindent(code);
1590 lineNumbers = this.figureOutLineNumbers(code);
1593 matches = this.findMatches(this.regexList, code);
1595 html = this.getMatchesHtml(code, matches);
1613 + (gutter ? '<td class="gutter">' + this.getLineNumbersHtml(code) + '</td>' : '')
1633 getDiv: function(code)
1635 if (code === null)
1636 code = '';
1638 this.code = code;
1643 div.innerHTML = this.getHtml(code);
1707 code : XRegExp( property in htmlScript