Add highlighting for all the fields
967260
def highlight(self, search):
        
        return search.highlight(*(f if '^' not in f else f.split('^', 1)[0]
                                  for f in self.fields))
576612
private function parse_fields() {
		$fields = Kirki::$fields;
		foreach ( $fields as $field ) {
			if ( isset( $field['tooltip'] ) && ! empty( $field['tooltip'] ) ) {
				// Get the control ID and properly format it for the tooltips.
				$id = str_replace( '[', '-', str_replace( ']', '', $field['settings'] ) );
				// Add the tooltips content.
				$this->tooltips_content[ $id ] = [
					'id'      => $id,
					'content' => $field['tooltip'],
				];
			}
		}
	}
1095490
def add_highlight(self, hl_group, line, col_start=0,
                      col_end=-1, src_id=-1, async_=None,
                      **kwargs):
        """"""
        async_ = check_async(async_, kwargs, src_id != 0)
        return self.request('nvim_buf_add_highlight', src_id, hl_group,
                            line, col_start, col_end, async_=async_)
1206802
protected static function highlightSingleField($fieldString, $highlightInfo, $arguments)
    {
        $result = null;

        foreach ($highlightInfo as $highlightItem) {
            $highlightItemStripped = str_replace(['\ueeee', '\ueeef'], ['', ''], $highlightItem);
            if (null !== strpos($fieldString, $highlightItemStripped)) {
                // HTML escape the text here if not explicitly configured to not do so.
                // Use f:format.raw in the template to avoid double escaping the HTML tags.
                if (!$arguments['raw']) {
                    $highlightItem = htmlspecialchars($highlightItem);
                }

                $highlightItemMarkedUp = str_replace(
                    ['\ueeee', '\ueeef'],
                    [$arguments['highlightTagOpen'], $arguments['highlightTagClose']],
                    $highlightItem);
                $result = str_replace($highlightItemStripped, $highlightItemMarkedUp, $fieldString);
                break;
            }
        }

        // If no highlighted string is present, use the original one.
        if (null === $result) {
            if ($arguments['raw']) {
                $result = $fieldString;
            } else {
                $result = htmlspecialchars($fieldString);
            }
        }

        return $result;
    }
830288
@GwtIncompatible("Class.getDeclaredFields")
	public ToStringBuilder addAllFields() {
		List<Field> fields = getAllDeclaredFields(instance.getClass());
		for(Field field : fields) {
			addField(field);
		}
		return this;
	}
291607
function() {
					// Do not apply if nothing is found.
					if ( this._.cursors.length < 1 )
						return;

					// Remove the previous highlight if there's one.
					if ( this._.highlightRange )
						this.removeHighlight();

					// Apply the highlight.
					var range = this.toDomRange(),
						bookmark = range.createBookmark();
					highlightStyle.applyToRange( range, editor );
					range.moveToBookmark( bookmark );
					this._.highlightRange = range;

					// Scroll the editor to the highlighted area.
					var element = range.startContainer;
					if ( element.type != CKEDITOR.NODE_ELEMENT )
						element = element.getParent();
					element.scrollIntoView();

					// Update the character cursors.
					this.updateFromDomRange( range );
				}
562337
def mark_all_fields!
      # TODO: We can use a Set here, but set was having issues.  Check in a
      # later version of opal.
      fields_to_mark = []

      # Look at each validation
      validations = self.class.validations_to_run
      if validations
        fields_to_mark += validations.keys
      end

      # Also include any current fields
      fields_to_mark += attributes.keys

      fields_to_mark.each do |key|
        mark_field!(key.to_sym)
      end
    end
1352999
function textField (key, value, prop, options) {
  function onfocus (e) {
    var val = e.target.value
    options.focusField(e, key, val, prop)
  }

  function onblur (e) {
    var val = e.target.value
    options.blurField(e, key, val, prop)
  }

  function oninput (e) {
    var val = e.target.value
    options.updateField(e, key, val, prop)
  }

  function onclick (e) {
    var val = e.target.value
    options.clickField(e, key, val, prop)
  }

  return html`<div class="data-form-field" onclick=${onclick}>
    <label class="data-form-label" for="data-form-field-input-${prop.key}">
      ${key}
    </label>
    <textarea id="data-form-field-input-${prop.key}" onfocus=${onfocus} onblur=${onblur} oninput=${oninput} value=${value}>${value}</textarea>
  </div>`
}
926656
private function AddTextField()
    {
        $name = 'Text';
        $this->AddRichTextField($name, $this->article->GetText());
        $this->SetRequired($name);
    }
415506
function Highlight(doc, characterRange, classApplier, converter, id, containerElementId) {
        if (id) {
            this.id = id;
            nextHighlightId = Math.max(nextHighlightId, id + 1);
        } else {
            this.id = nextHighlightId++;
        }
        this.characterRange = characterRange;
        this.doc = doc;
        this.classApplier = classApplier;
        this.converter = converter;
        this.containerElementId = containerElementId || null;
        this.applied = false;
    }
166832
private function getHighlight()
    {
        if (Utils::findKey($this->options, 'highlight', false))
        {
            foreach ($this->fields as $field)
            {
                $this->payload['highlight']['fields'][$field] = new StdClass();
            }

            if ($tag = Utils::findKey($this->options['highlight'], 'tag', false))
            {
                $this->payload['highlight']['pre_tags'] = [$tag];
                $this->payload['highlight']['post_tags'] = [preg_replace('/\A</', '</', $tag)];
            }
        }
    }
387908
def get_all_fields(self):
        """"""
        return {
            name: {
                'name': name,
                'label': field['label'],
            }
            for name, field in self.get_model_config().get_list_fields().items()
        }
18239
function highlight(value) {
        var html = ngPrettyJsonFunctions.syntaxHighlight(value) || "";
        html = html
        .replace(/\{/g, "<span class='sep'>{</span>")
        .replace(/\}/g, "<span class='sep'>}</span>")
        .replace(/\[/g, "<span class='sep'>[</span>")
        .replace(/\]/g, "<span class='sep'>]</span>")
        .replace(/\,/g, "<span class='sep'>,</span>");                        
        return isDefined(value) ? scope.tmplElt.find('pre').html(html) : scope.tmplElt.find('pre').empty();
      }
304529
def highlight_options(self, **kwargs):
        
        s = self._clone()
        s._highlight_opts.update(kwargs)
        return s
1139320
private function AddValueField()
    {
        $name = 'Value';
        $field = new Fields\Textarea($name, $this->textarea->GetValue());
        $this->AddField($field);
    }
573542
def add_attr2fields(self, attr_name, attr_val, fields=[], exclude=[], include_all_if_empty=True):
        
        for f in self.filter_fields(fields, exclude, include_all_if_empty):
            f = self.fields[f.name]
            org_val = f.widget.attrs.get(attr_name, '')
            f.widget.attrs[attr_name] = '%s %s' % (org_val, attr_val) if org_val else attr_val
891215
def highlight_current_cell(self):
        """"""
        if self.cell_separators is None or \
          not self.highlight_current_cell_enabled:
            return
        cursor, whole_file_selected, whole_screen_selected =\
            self.select_current_cell_in_visible_portion()
        selection = TextDecoration(cursor)
        selection.format.setProperty(QTextFormat.FullWidthSelection,
                                     to_qvariant(True))
        selection.format.setBackground(self.currentcell_color)

        if whole_file_selected:
            self.clear_extra_selections('current_cell')
        elif whole_screen_selected:
            if self.has_cell_separators:
                self.set_extra_selections('current_cell', [selection])
                self.update_extra_selections()
            else:
                self.clear_extra_selections('current_cell')
        else:
            self.set_extra_selections('current_cell', [selection])
            self.update_extra_selections()