Lines Matching defs:flag

876      * @param boolean $flag Whether to turn classes on or not
879 public function enable_classes($flag = true) {
880 $this->use_classes = ($flag) ? true : false;
914 * @param boolean $preserve_defaults If set, is the flag for whether to merge the "fancy"
948 * @param int $flag How line numbers should be displayed
952 public function enable_line_numbers($flag, $nth_row = 5) {
953 if (GESHI_NO_LINE_NUMBERS != $flag && GESHI_NORMAL_LINE_NUMBERS != $flag
954 && GESHI_FANCY_LINE_NUMBERS != $flag) {
957 $this->line_numbers = $flag;
967 * @param boolean $flag Wether multiline spans are allowed or not
970 public function enable_multiline_span($flag) {
971 $this->allow_multiline_span = (bool) $flag;
1023 * @param boolean $flag Whether to turn highlighting for that group on or off
1026 public function set_keyword_group_highlighting($key, $flag = true) {
1027 $this->lexic_permissions['KEYWORDS'][$key] = ($flag) ? true : false;
1063 * @param boolean $flag Whether to turn highlighting for that group on or off
1066 public function set_comments_highlighting($key, $flag = true) {
1067 $this->lexic_permissions['COMMENTS'][$key] = ($flag) ? true : false;
1092 * @param boolean $flag Whether to turn highlighting for escape characters on or off
1095 public function set_escape_characters_highlighting($flag = true) {
1096 $this->lexic_permissions['ESCAPE_CHAR'] = ($flag) ? true : false;
1127 * @param boolean $flag Whether to turn highlighting for brackets on or off
1131 public function set_brackets_highlighting($flag) {
1132 $this->lexic_permissions['BRACKETS'] = ($flag) ? true : false;
1163 * @param boolean $flag Whether to turn highlighting for symbols on or off
1166 public function set_symbols_highlighting($flag) {
1168 $this->lexic_permissions['SYMBOLS'] = ($flag) ? true : false;
1171 $this->set_brackets_highlighting ($flag);
1196 * @param boolean $flag Whether to turn highlighting for strings on or off
1199 public function set_strings_highlighting($flag) {
1200 $this->lexic_permissions['STRINGS'] = ($flag) ? true : false;
1245 * @param boolean $flag Whether to turn highlighting for numbers on or off
1248 public function set_numbers_highlighting($flag) {
1249 $this->lexic_permissions['NUMBERS'] = ($flag) ? true : false;
1276 * @param boolean $flag Whether to turn highlighting for methods on or off
1279 public function set_methods_highlighting($flag) {
1280 $this->lexic_permissions['METHODS'] = ($flag) ? true : false;
1307 * @param boolean $flag Whether to turn highlighting for the regular expression group on or off
1310 public function set_regexps_highlighting($key, $flag) {
1311 $this->lexic_permissions['REGEXPS'][$key] = ($flag) ? true : false;
1414 * The optional flag parameter was added in version 1.0.7.21 and can be used
1418 * @param boolean $flag A flag specifying whether to enable or disable all highlighting
1421 public function enable_highlighting($flag = true) {
1422 $flag = $flag ? true : false;
1426 $this->lexic_permissions[$key][$k] = $flag;
1429 $this->lexic_permissions[$key] = $flag;
1434 $this->enable_important_blocks = $flag;
1732 * @param boolean $flag Tells whether to enable or disable this feature
1735 public function enable_inner_code_block($flag) {
1736 $this->force_code_block = (bool)$flag;
1791 * @param boolean $flag Tells whether to enable or disable highlighting of important blocks
1796 public function enable_important_blocks($flag) {
1797 $this->enable_important_blocks = ( $flag ) ? true : false;
1803 * @param boolean $flag If true, IDs will be added to each line.
1806 public function enable_ids($flag = true) {
1807 $this->add_ids = ($flag) ? true : false;
2119 //At this step we have an associative array with flag groups for a
3773 foreach ($this->language_data['PARSER_CONTROL']['ENABLE_FLAGS'] as $flag => $value) {
3776 if ($flag == 'ALL') {
3780 if (!isset($this->lexic_permissions[$flag])) {
3784 if (is_array($this->lexic_permissions[$flag])) {
3785 foreach ($this->lexic_permissions[$flag] as $key => $val) {
3786 $this->lexic_permissions[$flag][$key] = $perm;
3789 $this->lexic_permissions[$flag] = $perm;