A text editor is a computer program used for writing and editing source code or plain text documents. It provides an interface to enter, edit, format and search text. Text editors can be simple command line programs that allow users to type in commands and text, or they may have more advanced features such as syntax highlighting, auto-completion, and error checking. Some popular text editors include Notepad++, Sublime Text, and Visual Studio Code.