Lines Matching defs:group

133 /** The key of the regex array defining what bracket group in a
138 /** The key of the regex array defining what bracket group in a
141 /** The key of the regex array defining what bracket group in a
985 * Sets the style for a keyword group. If $preserve_defaults is
989 * @param int $key The key of the keyword group to change the styles of
996 //Set the style for this keyword group
1020 * Turns highlighting on/off for a keyword group
1022 * @param int $key The key of the keyword group to turn on or off
1023 * @param boolean $flag Whether to turn highlighting for that group on or off
1035 * @param int $key The key of the comment group to change the styles of
1062 * @param int $key The key of the comment group to turn on or off
1063 * @param boolean $flag Whether to turn highlighting for that group on or off
1078 * @param int $group Tells the group of symbols for which style should be set.
1081 public function set_escape_characters_style($style, $preserve_defaults = false, $group = 0) {
1083 $this->language_data['STYLES']['ESCAPE_CHAR'][$group] = $style;
1085 $this->language_data['STYLES']['ESCAPE_CHAR'][$group] .= $style;
1143 * @param int $group Tells the group of symbols for which style should be set.
1146 public function set_symbols_style($style, $preserve_defaults = false, $group = 0) {
1149 $this->language_data['STYLES']['SYMBOLS'][$group] = $style;
1151 $this->language_data['STYLES']['SYMBOLS'][$group] .= $style;
1155 if (0 == $group) {
1167 // Update lexic permissions for this symbol group
1182 * @param int $group Tells the group of strings for which style should be set.
1185 public function set_strings_style($style, $preserve_defaults = false, $group = 0) {
1187 $this->language_data['STYLES']['STRINGS'][$group] = $style;
1189 $this->language_data['STYLES']['STRINGS'][$group] .= $style;
1211 * @param int $group Tells the group of script blocks for which style should be set.
1214 public function set_script_style($style, $preserve_defaults = false, $group = 0) {
1217 $this->language_data['STYLES']['SCRIPT'][$group] = $style;
1219 $this->language_data['STYLES']['SCRIPT'][$group] .= $style;
1231 * @param int $group Tells the group of numbers for which style should be set.
1234 public function set_numbers_style($style, $preserve_defaults = false, $group = 0) {
1236 $this->language_data['STYLES']['NUMBERS'][$group] = $style;
1238 $this->language_data['STYLES']['NUMBERS'][$group] .= $style;
1306 * @param int $key The key of the regular expression group to turn on or off
1307 * @param boolean $flag Whether to turn highlighting for the regular expression group on or off
1317 * @param int $key The key of the keyword group to change the case sensitivity of
1565 * Adds a keyword to a keyword group for highlighting
1567 * @param int $key The key of the keyword group to add the keyword to
1568 * @param string $word The word to add to the keyword group
1587 * Removes a keyword from a keyword group
1589 * @param int $key The key of the keyword group to remove the keyword from
1590 * @param string $word The word to remove from the keyword group
1604 //NEW in 1.0.8, optionally recompile keyword group
1612 * Creates a new keyword group
1614 * @param int $key The key of the keyword group to create
1615 * @param string $styles The styles for the keyword group
1616 * @param boolean $case_sensitive Whether the keyword group is case sensitive ornot
1617 * @param array $words The words to use for the keyword group
1628 //Add the new keyword group internally
1642 * Removes a keyword group
1644 * @param int $key The key of the keyword group to remove
1648 //Remove the keyword group internally
1659 * compile optimized regexp list for keyword group
1661 * @param int $key The key of the keyword group to compile & optimize
1742 * @param int $group The key of the keyword group to set the URL for
1743 * @param string $url The URL to set for the group. If {FNAME} is in
1748 public function set_url_for_keyword_group($group, $url) {
1749 $this->language_data['URLS'][$group] = $url;
1951 //Check if it belongs to group 0 or the actual stylegroup
2309 // group adjacent script blocks, e.g. <foobar><asdf> should be one block, not three!
3253 // There is a base group for this keyword
3256 //$keyword = ( $this->language_data['CASE_SENSITIVE'][$group] ) ? $keyword : strtolower($keyword);
3365 $x = 0; // check wether per-keyword-group parser_control is enabled
3385 // NEW in 1.0.8 - per-keyword-group parser control
3574 //Check if consequtive symbols belong to the same group to save output ...
4452 foreach ($this->language_data['STYLES']['KEYWORDS'] as $group => $styles) {
4454 (isset($this->lexic_permissions['KEYWORDS'][$group]) &&
4455 $this->lexic_permissions['KEYWORDS'][$group]))) {
4456 $stylesheet .= "$selector.kw$group {{$styles}}\n";
4459 foreach ($this->language_data['STYLES']['COMMENTS'] as $group => $styles) {
4461 (isset($this->lexic_permissions['COMMENTS'][$group]) &&
4462 $this->lexic_permissions['COMMENTS'][$group]) ||
4464 !empty($this->language_data['COMMENT_REGEXP'][$group])))) {
4465 $stylesheet .= "$selector.co$group {{$styles}}\n";
4468 foreach ($this->language_data['STYLES']['ESCAPE_CHAR'] as $group => $styles) {
4471 if ($group === 'HARD') {
4472 $group = '_h';
4474 $stylesheet .= "$selector.es$group {{$styles}}\n";
4477 foreach ($this->language_data['STYLES']['BRACKETS'] as $group => $styles) {
4479 $stylesheet .= "$selector.br$group {{$styles}}\n";
4482 foreach ($this->language_data['STYLES']['SYMBOLS'] as $group => $styles) {
4484 $stylesheet .= "$selector.sy$group {{$styles}}\n";
4487 foreach ($this->language_data['STYLES']['STRINGS'] as $group => $styles) {
4490 if ($group === 'HARD') {
4491 $group = '_h';
4493 $stylesheet .= "$selector.st$group {{$styles}}\n";
4496 foreach ($this->language_data['STYLES']['NUMBERS'] as $group => $styles) {
4498 $stylesheet .= "$selector.nu$group {{$styles}}\n";
4501 foreach ($this->language_data['STYLES']['METHODS'] as $group => $styles) {
4503 $stylesheet .= "$selector.me$group {{$styles}}\n";
4507 foreach ($this->language_data['STYLES']['SCRIPT'] as $group => $styles) {
4509 $stylesheet .= "$selector.sc$group {{$styles}}\n";
4512 foreach ($this->language_data['STYLES']['REGEXPS'] as $group => $styles) {
4514 (isset($this->lexic_permissions['REGEXPS'][$group]) &&
4515 $this->lexic_permissions['REGEXPS'][$group]))) {
4516 if (is_array($this->language_data['REGEXPS'][$group]) &&
4517 array_key_exists(GESHI_CLASS, $this->language_data['REGEXPS'][$group])) {
4519 $stylesheet .= $this->language_data['REGEXPS'][$group][GESHI_CLASS];
4522 $stylesheet .= "$selector.re$group {{$styles}}\n";