Lines Matching refs:style
32 * <li> define style rules. See the example page for examples.
142 // token style names. correspond to css classes
144 * token style for a string literal
149 * token style for a keyword
154 * token style for a comment
159 * token style for a type
164 * token style for a literal value. e.g. 1, null, true.
169 * token style for a punctuation string.
174 * token style for plain text.
180 * token style for an sgml tag.
185 * token style for a markup declaration such as a DOCTYPE.
190 * token style for embedded source.
195 * token style for an sgml attribute name.
200 * token style for an sgml attribute value.
239 // TODO: maybe style special characters inside a regexp as punctuation.
624 /** Given triples of [style, pattern, context] returns a lexing function,
628 * where index_n is an index into the sourceCode, and style_n is a style
633 * [style : string, pattern : RegExp, DEPRECATED, shortcut : string].
635 * Style is a style constant like PR_PLAIN, or can be a string of the
638 * E.g., if style is 'lang-lisp', and group 1 contains the text
654 * match is considered a token with the same style.
700 * style classes preceded by the position at which they start in
712 * are style markers (e.g., PR_COMMENT) that run from that position until
723 var style = styleCache[token];
727 if (typeof style === 'string') {
733 style = patternParts[0];
739 style = patternParts[0];
745 style = PR_PLAIN;
749 isEmbedded = style.length >= 5 && 'lang-' === style.substring(0, 5);
752 style = PR_SOURCE;
755 if (!isEmbedded) { styleCache[token] = style; }
762 decorations.push(basePos + tokenStart, style);
774 var lang = style.substring(5);
801 * escape. It does not recognize perl's qq() style strings.
807 * It recognizes C, C++, and shell style comments.
1094 * Breaks {@code job.sourceCode} around style boundaries in
1101 * decorations: {Array.<number|string} an array of style classes preceded
1143 // Conflate all adjacent decorations that use the same style.
1159 oldDisplay = sourceNode.style.display;
1160 sourceNode.style.display = 'none';
1214 sourceNode.style.display = oldDisplay;
1228 * decorations: {Array.<number|string>} an array of style classes
1274 ['lang-css', /^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],
1286 [PR_ATTRIB_NAME, /^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],
1292 ['lang-css', /^style\s*=\s*\"([^\"]+)\"/i],
1293 ['lang-css', /^style\s*=\s*\'([^\']+)\'/i],
1294 ['lang-css', /^style\s*=\s*([^\"\'>\s]+)/i]
1357 'hashComments': 3, // ### style block comments