⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usage.html

📁 一个简单的文本编辑器
💻 HTML
字号:
<HTML><HEAD><TITLE>Using gedit</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.54"><LINKREL="HOME"TITLE="gedit"HREF="index.html"><LINKREL="PREVIOUS"TITLE="gedit"HREF="index.html"><LINKREL="NEXT"TITLE="Plug-ins"HREF="plugins.html"></HEAD><BODYCLASS="SECT1"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">gedit</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="index.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="plugins.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="usage">Using gedit</A></H1>        <P>      A text editor is an essential tool for your GNOME desktop.  From       writing a small document, editing a configuration file, or composing       a webpage, <SPANCLASS="APPLICATION">gedit</SPAN> will fill your       need.      </P>    <P>      Starting <SPANCLASS="APPLICATION">gedit</SPAN> opens       the <SPANCLASS="INTERFACE">Main window</SPAN>.      <DIVCLASS="FIGURE"><ANAME="mainwindow-fig"></A><P><B>Figure 1. gedit Main Window</B></P>			  	  <P><IMGSRC="images/gedit.gif"></P>	      </DIV>      From here you see the menu bar       which has all the options and tools for <SPANCLASS="APPLICATION">gedit</SPAN>.        You also see the toolbar with all       the basic commands you will probably use the most in       <SPANCLASS="APPLICATION">gedit</SPAN>.  If you right-click on the text window,       under the toolbar, a pop-up menu       will appear displaying some common editing and file commands.    </P>    <P>      <SPANCLASS="APPLICATION">Gedit</SPAN> has plug-ins       so you can send a quick email to a friend, lookup a       webpage if you need help with your work, or produce a file that tells       the difference between two other files, using the <BCLASS="COMMAND">diff</B> command.        The shell output plugin inserts the output of any shell command into       <SPANCLASS="APPLICATION">gedit</SPAN>.  <SPANCLASS="APPLICATION">Gedit's</SPAN>       plug-ins will let you insert the current time in your document, as it       appears in <BCLASS="COMMAND">date</B>, insert the phrase <SPANCLASS="QUOTE">"Hello World"</SPAN>      in your current document, reverse the letters in the current document       you're editing, or convert a decimal number to either a hexidecimal       or octal number      <ANAME="AEN73"HREF="#FTN.AEN73">[1]</A>      and back again.    </P>    <DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="usage-commandline">Using gedit from the Command line</A></H2>                  <P>	<SPANCLASS="APPLICATION">Gedit</SPAN> can also be started from the command line, 	by typing <BCLASS="COMMAND">gedit</B> with the name of the file you want to 	edit.  This will open a new <SPANCLASS="INTERFACE">Main Window</SPAN> of 	<SPANCLASS="APPLICATION">gedit</SPAN> with the file you typed in the command line.	You can also open multiple files in <SPANCLASS="APPLICATION">gedit</SPAN> from 	the command line.  You type <BCLASS="COMMAND">gedit</B> with each file's 	name, separated by a space, after the command <BCLASS="COMMAND">gedit</B>.  	So, to open the three files <TTCLASS="FILENAME">file1.txt</TT>, 	<TTCLASS="FILENAME">file2.txt</TT>, and <TTCLASS="FILENAME">file3.txt</TT>, you 	need to type <BCLASS="COMMAND">gedit</B> <TTCLASS="FILENAME">file1.txt</TT> 	<TTCLASS="FILENAME">file2.txt</TT> <TTCLASS="FILENAME">file3.txt</TT> in a terminal 	and <SPANCLASS="APPLICATION">gedit</SPAN> will open the three file listed above.  	This feature is very handy to quickly edit a configuration file or script 	while you are using your favorite shell.	<DIVCLASS="NOTE"><BLOCKQUOTECLASS="NOTE">	  <P><B>Note: </B>	    If you open a file using <SPANCLASS="APPLICATION">gedit</SPAN> from a 	    <SPANCLASS="SYSTEMITEM">X terminal</SPAN> and then kill the 	    <SPANCLASS="SYSTEMITEM">X terminal</SPAN>, the <SPANCLASS="APPLICATION">gedit</SPAN> 	    you opened will also be killed.  This happens because 	    <SPANCLASS="APPLICATION">gedit</SPAN> is a child process of the 	    <SPANCLASS="SYSTEMITEM">X terminal</SPAN>, the parent process.  In the 	    Unix environment if you kill the parent process, all the child processes 	    that are spawned by the parent process are killed.  Killing all the 	    <SPANCLASS="QUOTE">"children"</SPAN> of the parent process is very useful in 	    a Unix environment.  It's really okay if you don't understand the above 	    explanation.  Just remember if you open gedit in a 	    <SPANCLASS="SYSTEMITEM">X terminal</SPAN> and kill the <SPANCLASS="SYSTEMITEM">X terminal</SPAN>, 	    <SPANCLASS="APPLICATION">gedit</SPAN> will also be killed.	  </P>	</BLOCKQUOTE></DIV>      </P>      <P>	<SPANCLASS="APPLICATION">Gedit</SPAN> also has support for pipes when you use it 	in a <SPANCLASS="SYSTEMITEM">console</SPAN> or <SPANCLASS="SYSTEMITEM">X terminal</SPAN>.  	When you use a pipe with <SPANCLASS="APPLICATION">gedit</SPAN>, on the command line, 	<SPANCLASS="APPLICATION">Gedit</SPAN> is opened and the output of the other 	command that is piped to <SPANCLASS="APPLICATION">gedit</SPAN> is displayed as 	a text file in <SPANCLASS="APPLICATION">gedit's</SPAN> <SPANCLASS="INTERFACE">Main Window</SPAN>.	For example if you want to display a listing of what files are in a specific 	directory using the <BCLASS="COMMAND">ls</B> command, you will type <BCLASS="COMMAND">ls</B> 	<BCLASS="COMMAND">|</B> <BCLASS="COMMAND">gedit</B>.  	<ANAME="AEN118"HREF="#FTN.AEN118">[2]</A>	The output of <BCLASS="COMMAND">ls</B>, 	that is normally displayed on the <SPANCLASS="SYSTEMITEM">console</SPAN> or 	<SPANCLASS="SYSTEMITEM">X terminal</SPAN>, will be displayed in 	<SPANCLASS="APPLICATION">gedit</SPAN> as a new text file.  This option is very useful 	for commands that display their output too fast or if you want to use the output 	in a text file.      </P>    </DIV>  </DIV><H3CLASS="FOOTNOTES">Notes</H3><TABLEBORDER="0"CLASS="FOOTNOTES"WIDTH="100%"><TR><TDALIGN="LEFT"VALIGN="TOP"WIDTH="5%"><ANAME="FTN.AEN73"HREF="usage.html#AEN73">[1]</A></TD><TDALIGN="LEFT"VALIGN="TOP"WIDTH="95%">	<P>	  Decimal, hexidecimal, and octal numbers are number with a different base.  	  A decimal number has a base of 10, these are numbers you see everyday, 	  hexidecimal number has a base of 16, and octal numbers have a base of 8.  	  So, a decimal number of 45 would be 2D in hexidecimal, and 55 in octal.	</P>      </TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"WIDTH="5%"><ANAME="FTN.AEN118"HREF="usage.html#AEN118">[2]</A></TD><TDALIGN="LEFT"VALIGN="TOP"WIDTH="95%">	  <P>	    The | (pipe) character varies from keyboard to keyboard, but it will, most often, be 	    underneath the \ (backslash)character.  Some common places to look for the pipe 	    character is: to the right on the shift key on the right side of the keyboard, to 	    the right of the ] (square bracket) key or above the enter key on the right side 	    of the keyboard, or to the left of the backspace key on the right side of the keyboard.	  </P>	</TD></TR></TABLE><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="index.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="index.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="plugins.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">gedit</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top">&nbsp;</TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Plug-ins</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -