Home | History | Annotate | Download | only in docs

Lines Matching refs:source

31  * 1) include this source file in an html page via
34 * 3) mark the <pre> and <code> tags in your source with class=prettyprint.
166 /** token style for embedded source. */
438 * @return {Object} source code and extracted tags.
499 return { source: sourceBuf.join(''), tags: extractedTags };
541 * function that takes source code and returns a list of decorations.
617 // Tags whose content is not escaped, and which contain source code.
621 // Splits any of the source|style|xmp entries above into a start tag,
622 // source content, and end tag.
629 function tokenizeMarkup(source) {
630 var decorations = PR_MARKUP_LEXER(source);
635 end = i + 2 < decorations.length ? decorations[i + 2] : source.length;
638 var sourceChunk = source.substring(start, end);
663 * recursively lex source chunks.
666 function splitTagAttributes(source, decorations) {
672 end = i + 2 < decorations.length ? decorations[i + 2] : source.length;
673 var chunk = source.substring(start, end);
682 /** returns a function that produces a list of decorations from source text.
775 function splitNonStringNonCommentTokens(source, decorations) {
781 end = i + 2 < decorations.length ? decorations[i + 2] : source.length;
782 chunk = source.substring(start, end);
789 var token = source.substring(subStart, subEnd);
829 /** identify regions of markup that are really source code, and recursivley
833 function splitSourceNodes(source, decorations) {
840 end = i + 2 < decorations.length ? decorations[i + 2] : source.length;
841 var subDecorations = decorateSource(source.substring(start, end));
852 /** identify attribute values that really contain source code and recursively
856 function splitSourceAttributes(source, decorations) {
863 end = i + 2 < decorations.length ? decorations[i + 2] : source.length;
864 nextValueIsSource = /^on|^style$/i.test(source.substring(start, end));
868 end = i + 2 < decorations.length ? decorations[i + 2] : source.length;
869 var attribValue = source.substring(start, end);
913 * <?...?> embedded source
914 * <%...%> embedded source
930 // embedded source section, i.e. is an open <script> tag. If it is, find
974 // and outputing properly escaped chunks of source
1052 * a function from source code to a list of decorations.
1113 // Extract tags, and convert the source code to plain text.
1116 var source = sourceAndExtractedTags.source;
1118 /** Even entries are positions in source in ascending order. Odd entries
1129 /^\s*</.test(source) ? 'default-markup' : 'default-code';
1132 /** Even entries are positions in source in ascending order. Odd enties
1137 var decorations = langHandlerRegistry[opt_langExtension].call({}, source);
1139 // Integrate the decorations and tags back into the source code to produce
1141 return recombineTagsAndDecorations(source, extractedTags, decorations);
1212 // sections of source code.