Lines Matching refs:text

8 Syntax.innerText=function(element){var text;if(!element){return"";}
9 …R'){return'\n';}else if(element.textContent){text=element.textContent;}else if(document.body.inner…
10 return text.replace(/\r\n?/g,'\n');}
11text=null,elem=elems[i];if(elem.nodeType===3||elem.nodeType===4){offset+=elem.nodeValue.length;}el…
13 …ptions.tabWidth=parseInt(value,10);}};Syntax.convertTabsToSpaces=function(text,tabSize){var space=… argument
15 text=text.replace(pattern,function(match){var offset=arguments[arguments.length-2];if(match==="\r"|…
16 offsets.push([offset,width,totalOffset]);return space[width];}});return{text:text,offsets:offsets};…
18text){(function(matches){for(var i=0;i<matches.length;i++){var match=matches[i];var offset=match.o… argument
26text){this.adjust(offset,null,text);for(var i=0;i<this.children.length;i++){this.children[i].shift… argument
27 if(text){this.value=text.substr(this.offset,this.length);}};Syntax.Match.sort=function(a,b){return(…
31 var text=this.value.substr(start-this.offset,end-start);append(text,container);append(child.reduce(…
78 …rents.push(name);this.rules.push({apply:function(text,expr){return Syntax.brushes[name].getMatches… argument
85 Syntax.Brush.MatchPattern=function(text,rule){if(!rule.pattern) argument
86 …attern=new RegExp;pattern.compile(rule.pattern);while((match=pattern.exec(text))!==null){if(rule.m…
92 ….getMatchesForRule=function(text,rule){var matches=[],match=null;if(typeof(rule.apply)!='undefined… argument
93 if(rule.debug){Syntax.log("Syntax matches:",rule,text,matches);}
96 …e.getMatches=function(text){var matches=[];for(var i=0;i<this.rules.length;i+=1){matches=matches.c… argument
97 …ntax.Brush.buildTree=function(rule,text,offset,additionalMatches){var match=Syntax.brushes[rule.br… argument
98 …pe.buildTree=function(text,offset,additionalMatches){offset=offset||0;text=text.replace(/\r/g,'');… argument
99 var top=new Syntax.Match(offset,text.length,{klass:this.allKlasses().join(" "),allow:'*',owner:this…
101 …eturn top;};Syntax.Brush.prototype.process=function(text,matches,options){var top=this.buildTree(t… argument
104text,options,callback){var brushName=(options.brush||'plain').toLowerCase();brushName=Syntax.alias… argument
105 text=replacement.text;}
106text,options.matches,options);if(options.linkify!==false){jQuery('span.href',html).each(function()…
107 callback(html,brush,text,options);});}
110 …ontainer));var text=Syntax.innerText(this);var match=text.match(/-\*- mode: (.+?);(.*?)-\*-/i);var…
111 Syntax.highlightText(text,options,function(html,brush){Syntax.layouts.get(options.layout,function(l…