Lines Matching refs:line
793 str = eachLine(str, function(line) argument
795 if (line.length == 0)
800 line = line.replace(/^( | )+/, function(s)
806 if (line.length == 0)
809 return spaces + '<code class="' + css + '">' + line + '</code>';
870 function insertSpaces(line, pos, count) argument
872 return line.substr(0, pos)
874 + line.substr(pos + 1, line.length) // pos + 1 will get rid of the tab
879 code = eachLine(code, function(line) argument
881 if (line.indexOf(tab) == -1)
882 return line;
886 while ((pos = line.indexOf(tab)) != -1)
892 line = insertSpaces(line, pos, spaces);
895 return line;
944 var line = lines[i];
946 if (trim(line).length == 0)
949 var matches = regex.exec(line);
1365 eachLine(code, function(line, index) argument
1460 var line = lines[i],
1461 indent = /^( |\s)+/.exec(line),
1469 line = line.substr(spaces.length);
1473 line = trim(line);
1475 if (line.length == 0)
1476 line = sh.config.space;
1481 (spaces != null ? '<code class="' + brushName + ' spaces">' + spaces + '</code>' : '') + line