Selects all or a portion of the text in the edit box

Signature:

EditBox:HighlightText([start [, end]])

Arguments:

  • start - Character position at which to begin the selection (between 0, for the position before the first character, and editbox:GetNumLetters(), for the position after the last character); defaults to 0 if not specified (number)
  • end - Character position at which to end the selection; if not specified or if less than start, selects all characters after the start position; if equal to start, selects nothing and positions the cursor at the start position (number)