1, start:
Starting from a menu: application--> attachment--> Text Editor
Execute the following command from the command line: gedit
2, Window Description:
Menu bar: Contains all the commands you need to work with files in Gedit.
Toolbars: Contains a subset of commands that you can access from the menu bar.
Display area: This area contains the text of the file you are editing.
Output window: Displays the output returned by the Shell command plug-in and the diff file plug-in.
Status bar: Displays information about the current gedit activity and contextual information about the menu item.
3, small tips:
A, open multiple files:
To open multiple files from the command line, type the following command, and then press ENTER: Gedit file1.txt file2.txt file3.txt
B. Deliver the command output to a file:
For example, to deliver the output of the LS command to a text file, type ls | Gedit, and then press ENTER. The output of the LS command is displayed in a new file in the Gedit window.
C, change the highlighting mode for file preparation:
View--> highlighting Mode--> Markup Language-->html You can view HTML files in color mode
D, the use of Plug-ins:
Document Statistics: Calculates the number of lines in the current file, the number of words, the number of characters, and the number of bytes. The plug-in displays the results in a Document Statistics dialog box.
Indent: Indents selected rows or removes indents from selected rows.
Insert Date/Time: Inserts the current date and time in the file.
Shell: command displays the text output of the shell command in the Output window.
Sort: Sorts the selected text.
E, shortcut keys:
Ctrl-z: Undo
Ctrl-c: Copying
Ctrl-v: Paste
CTRL-T: Indent
Ctrl-q: Exit
Ctrl-s: Saving
Ctrl-r: Replacing
Ctrl+tab switch
Ctrl+w off tabs
Url:http://www.2cto.com/os/201203/123476.html