editor.AddColor

LuaFAR 3

editor.AddColor


result = editor.AddColor (EditorId, StringNumber, StartPos, EndPos, Flags,
                          Color, Priority, Owner)

Parameters:
  EditorId:     integer, or nil
  StringNumber: integer, or nil
  StartPos:     integer (1-based)
  EndPos:       integer (1-based)
  Flags:        flags
  Color:        table tFarColor or integer
  Priority:     integer (optional; default=EDITOR_COLOR_NORMAL_PRIORITY)
  Owner:        string, or nil  (defaults to the calling plugin's GUID)

Returns:
  result:       boolean

Far API used:
  EditorControl, ECTL_ADDCOLOR