Home | History | Annotate | Download | only in docs

Lines Matching refs:code

18  * some functions for browser-side pretty printing of code contained in html.
34 * 3) mark the <pre> and <code> tags in your source with class=prettyprint.
39 * need to specify which language the code is in.
50 * Split {@code prettyPrint} into multiple timeouts so as not to interfere with
52 * If set to {@code false}, {@code prettyPrint()} is synchronous.
70 /** Pretty print a chunk of code.
72 * @param {string} sourceCodeHtml code as html
73 * @return {string} code as html, but prettier
76 /** find all the < pre > and < code > tags in the DOM with class=prettyprint
174 * A class that indicates a section of markup that is not code, e.g. to allow
175 * embedding of line numbers within code listings.
184 * Like the python <code>
186 * </code>
438 * @return {Object} source code and extracted tags.
541 * function that takes source code and returns a list of decorations.
617 // Tags whose content is not escaped, and which contain source code.
684 * This code treats ", ', and ` as string delimiters, and \ as a string
829 /** identify regions of markup that are really source code, and recursivley
852 /** identify attribute values that really contain source code and recursively
908 * This code recognizes a number of constructs.
1052 * a function from source code to a list of decorations.
1065 registerLangHandler(decorateSource, ['default-code']);
1113 // Extract tags, and convert the source code to plain text.
1129 /^\s*</.test(source) ? 'default-markup' : 'default-code';
1139 // Integrate the decorations and tags back into the source code to produce
1157 document.getElementsByTagName('code'),
1189 if ((p.tagName === 'pre' || p.tagName === 'code' ||
1212 // sections of source code.