📄 7-editor.mht
字号:
<P class=3DCellBody><A name=3DpgfId-1075859></A>file =
name</P></TD></TR>
<TR>
<TD>
<P class=3DCellBody><A name=3DpgfId-1075861></A><KBD =
class=3DCode>%l</KBD>=20
</P></TD>
<TD>
<P class=3DCellBody><A name=3DpgfId-1075863></A>line =
number</P></TD></TR>
<TR>
<TD>
<P class=3DCellBody><A name=3DpgfId-1075865></A><KBD =
class=3DCode>%c</KBD>=20
</P></TD>
<TD>
<P class=3DCellBody><A name=3DpgfId-1075867></A>column =
number</P></TD></TR>
<TR>
<TD>
<P class=3DCellBody><A name=3DpgfId-1075869></A><KBD =
class=3DCode>%d</KBD>=20
</P></TD>
<TD>
<P class=3DCellBody><A name=3DpgfId-1075871></A>project=20
directory</P></TD></TR></TBODY></TABLE>
<H5 class=3DHeading4><A name=3DpgfId-1075877></A><A =
name=3D28279></A>Common editor=20
configurations</H5>
<P class=3DBody><A name=3DpgfId-1075879></A><A =
name=3Dmarker-1075878></A>vi<BR>
<P class=3DBodyHang1>To invoke the vi editor, you must enter the =
following into=20
either the <SPAN class=3DBold>External Editor </SPAN>text box in the =
<SPAN=20
class=3DBold>Edit</SPAN> preferences tab or at the command line:</P>
<P class=3DBodyListFollow><A name=3DpgfId-1075880></A><KBD =
class=3DCode>xterm -T %f -e=20
vi +%l %f</KBD> </P>
<P class=3DBodyListFollow><A name=3DpgfId-1075881></A>The modifications =
you make and=20
save are stored in the database only after you quit vi.</P>
<P class=3DBody><A name=3DpgfId-1075888></A><A =
name=3Dmarker-1075887></A>Emacs<BR>
<P class=3DBodyHang1><SPAN class=3DBold>Starting a new Emacs =
session</SPAN>: To=20
start a new Emacs session whenever you view source code, enter <KBD=20
class=3DCode>emacs</KBD> or the name of the executable file of Emacs in =
either the=20
<SPAN class=3DBold>External Editor</SPAN> text box in the <SPAN =
class=3DBold>Edit=20
</SPAN>preferences tab or at the command line. For example, enter <KBD=20
class=3DCode>nemacs</KBD> or <KBD class=3DCode>xemacs</KBD>, without any =
parameters.=20
The string <KBD class=3DCode>emacs</KBD> must be found in the command if =
you want=20
the changes you make and save to be immediately stored in the database =
(without=20
terminating Emacs).</P>
<P class=3DBodyListFollow><A name=3DpgfId-1075892></A><SPAN =
class=3DBold>Using a=20
current Emacs session</SPAN>: For instructions on how to configure=20
Source-Navigator to communicate with a currently running Emacs session, =
see <A=20
class=3DXRef=20
href=3D"http://sourcenav.sourceforge.net/online-docs/userguide/editor.htm=
l#23830">Using=20
Emacs as your Editor</A>.</P>
<P class=3DBody><A name=3DpgfId-1099105></A>For information on =
customizing your key=20
bindings, see the <A class=3DXRef=20
href=3D"http://sourcenav.sourceforge.net/online-docs/progref/custom.html#=
14563">Customization</A>=20
chapter in the <STRONG class=3DBoldEmphasis>Programmer's Reference=20
Guide</STRONG>.</P>
<H2 class=3DHeading1><A name=3DpgfId-1075901></A><A =
name=3D23830></A>Using Emacs as=20
your Editor</H2>
<P class=3DBody><A name=3DpgfId-1075906></A>Source-Navigator supports =
GNU <A=20
name=3Dmarker-1075905></A>Emacs 19.34 and XEmacs 19.14; other versions =
may also=20
work, although these have not been tested.</P>
<P class=3DBody><A name=3DpgfId-1098578></A>When you use <A=20
name=3Dmarker-1098574></A>Emacs as your editor, Source-Navigator =
displays files in=20
an Emacs window. Whenever Emacs saves a file, Source-Navigator updates =
the=20
database. Multiple projects can share a single Emacs editing =
session.</P>
<P class=3DBody><A name=3DpgfId-1075921></A>You can use Emacs with =
Source-Navigator=20
in one of two ways: </P>
<UL>
<LI class=3DBullet>
<P class=3DBody><A name=3DpgfId-1075922></A>to start a new Emacs =
process whenever=20
you make an edit request. </P>
<LI class=3DBullet>
<P class=3DBody><A name=3DpgfId-1075923></A>to communicate with an =
already running=20
Emacs process. </P></LI></UL>
<H3 class=3DHeading2><A name=3DpgfId-1075925></A>To Start a New <A=20
name=3Dmarker-1075924></A>Emacs Process</H3>
<P class=3DBody><A name=3DpgfId-1075926></A>Enter <KBD =
class=3DCode>emacs</KBD> (or=20
the name of your program with the string <KBD class=3DCode>emacs</KBD>) =
in the=20
<SPAN class=3DBold>External Editor</SPAN> text box of the <SPAN=20
class=3DBold>Edit</SPAN> preferences tab.</P>
<H3 class=3DHeading2><A name=3DpgfId-1075928></A>To Communicate with an =
Already=20
Running <A name=3Dmarker-1075927></A>Emacs Process</H3>
<OL>
<LI class=3DNumbered>
<P class=3DBody><A name=3DpgfId-1075929></A>Modify your Emacs start-up =
file so=20
that <KBD class=3DCode>gnuserv</KBD> utility, which is provided in =
your Emacs=20
distribution, is loaded. This involves adding two lines to your Emacs =
start-up=20
file (usually <KBD class=3DCode>~/.emacs</KBD>). You need to enter the =
full path=20
to your Emacs directory:
<P><KBD class=3DCode><A name=3DpgfId-1075930></A>(load "<KBD=20
class=3DCodeVariant><path to emacs=20
location></KBD>/lisp/gnuserv")<BR>(server-start)</KBD>=20
<P><A name=3DpgfId-1098225></A>See your Emacs documentation for =
additional=20
information.
<P></P>
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1098227></A>In the <SPAN =
class=3DBold>External=20
Editor</SPAN> text box, set your editor to <KBD =
class=3DCode>gnuclient</KBD><A=20
name=3Dmarker-1098226></A>.
<P><A name=3DpgfId-1098231></A>When you start a new Emacs session,=20
Source-Navigator can now request that the running Emacs session bring =
up files=20
for editing. Source-Navigator also rescans the files when you finish =
editing.=20
</P></LI></OL>
<H3 class=3DLabel><A name=3DpgfId-1075941></A>Note</H3>
<P class=3DNote><A name=3DpgfId-1098886></A>If you use <KBD =
class=3DCode>xemacs</KBD>,=20
the <KBD class=3DCode>gnuserv</KBD> package is included; see your XEmacs =
documentation for instructions on loading it.</P>
<P class=3DBody><A name=3DpgfId-1098890></A>Source-Navigator's search =
function=20
replaces the <KBD class=3DCode>find-tag</KBD> command (<KBD=20
class=3DCode>Meta-period</KBD>) when you search for a symbol. Because =
the other=20
tag commands are not yet available inside Source-Navigator, you need to =
use the=20
equivalent <KBD class=3DCode>emacs</KBD> <A =
name=3Dmarker-1098894></A>commands, if=20
available. </P>
<P class=3DBody><A name=3DpgfId-1098249></A></P>
<HR align=3Dcenter>
<TABLE class=3DTABLE cellPadding=3D1 width=3D100 align=3Dcenter =
border=3D0>
<TBODY>
<TR>
<TD align=3Dmiddle>
<P class=3DGotos><A=20
=
href=3D"http://sourcenav.sourceforge.net/online-docs/userguide/index_ug.h=
tml">Contents</A>=20
</P></TD>
<TD align=3Dmiddle>
<P class=3DGotos><A=20
=
href=3D"http://sourcenav.sourceforge.net/online-docs/userguide/symbrws.ht=
ml">Previous</A></P></TD>
<TD align=3Dmiddle>
<P class=3DGotos><A=20
=
href=3D"http://sourcenav.sourceforge.net/online-docs/userguide/clhierbrws=
.html">Next</A></P></TD></TR></TBODY></TABLE></BODY></HTML>
------=_NextPart_000_009E_01C8B69A.8A7A0350
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://sourcenav.sourceforge.net/online-docs/userguide/editor-1.gif
R0lGODlhsQEKAPcAAP///wAAABISEiQkJDc3N0lJSVtbW21tbYCAgJKSkqSkpLa2tsjIyNvb2+3t
7f///zMAAE0AAGYAAIAAAJkAALMAAMwAAOYAAP8AAP8dHf86Ov9XV/91df+Skv+vr//MzDMRAEoZ
AGAgAHcoAI4vAKQ3ALs+ANJGAOhNAP9VAP9sIv+CRP+ZZv+wiP/Gqv/dzDMiAEoxAGBAAHdPAI5e
AKRuALt9ANKMAOibAP+qAP+1Iv/BRP/MZv/XiP/jqv/uzDMzAEdHAFxcAHBwAIWFAJmZAK2tAMLC
ANbWAOvrAP//AP//Kf//Uv//ev//o///zCIzADFKAEBgAE93AF6OAG6kAH27AIzSAJvoAKr/ALX/
IsH/RMz/Ztf/iOP/qu7/zBEzABpNACJmACuAADOZADyzAETMAE3mAFX/AGj/HXz/Oo//V6P/dbb/
ksr/r93/zAAzAABQAABtAACKAACoAADFAADiAAD/ABr/GjP/M03/TWb/ZoD/gJn/mbP/s8z/zAAz
EQBNGgBmIgCAKwCZMwCzPADMRADmTQD/VR3/aDr/fFf/j3X/o5L/tq//ysz/3QAzIgBKMQBgQAB3
TwCOXgCkbgC7fQDSjADomwD/qiL/tUT/wWb/zIj/16r/48z/7gAzMwBNTQBmZgCAgACZmQCzswDM
zADm5gD//x3//zr//1f//3X//5L//6///8z//wAaMwAoUAA3bQBFigBUqABixQBx4gCA/xqM/zOZ
/02m/2az/4C//5nM/7PZ/8zm/wAAMwAAVQAAdwAAmQAAuwAA3QAA/xcX/y0t/0RE/1tb/3Fx/4iI
/5+f/7W1/8zM/xoAMyYATTMAZkAAgE0AmVkAs2YAzHMA5oAA/44d/506/6tX/7p1/8iS/9ev/+bM
/zMAM00ATWYAZoAAgJkAmbMAs8wAzOYA5v8A//8d//86//9X//91//+S//+v///M/zMAGk0AJmYA
M4AAQJkATbMAWcwAZuYAc/8AgP8djv86nf9Xq/91uv+SyP+v1//M5iH5BAAAAJ8ALAAAAACxAQoA
AAicAAEIHEiwoMGDCBMqXMiwocOHECNKnEixosWLGDNq3MhxY4CPIEOKHEmypMmTKFOqXMmypcuX
MGPKnEmzps2bOHPeBKCzp8+fQIMKHUq0qNGjL3kiXcq0qdOnUKNK3Tm1qtWrWLNq3Rqyo9evYMOK
HUu2rNmzaNOqXcu2rdu3cOPKnUu3rt27ePPq3cu3r9+/gAMLHky4sOHDEAMCADs=
------=_NextPart_000_009E_01C8B69A.8A7A0350
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://sourcenav.sourceforge.net/online-docs/userguide/editor-2.gif
R0lGODlhyAImAvcAAAAAAP///83OzQAA/3t9ewAAe8XCxXN1c6SlpJyZnABlAN7a3tXS1QD//6yq
rP+NALQwYqQoKd6lIM1dWimJUv///////////////////////////////////////////wAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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Pn145hi66durfv375J4879+vZw16JtJyfeGrdx
3o2BS59OHa7l58SVG5Q9Ofvx2Nq//nsHX728+fNtY5elrH49+e7b4Wd237q5+OG0N6Pfz78mfcnR
wbecRgFG9Z58CHEX324DeqYbg8hF2N+EFKZU4FkL/qWaUApid5+CAjI3YH0PhnecdxWmqGJIFzKE
V4sYTgSjTMZlZ599zqE4Wok2hshbjjvit+JO7mEE44wWITlkg7qR9tiLnE02W4gogqYZgNfpdyVN
RUr5Y5SR5dedldvpN56XaOan5JIl1bghRGvKmFGcphFGW4lmVobcjRLWeKeIeNLZlKBsWgWinHCi
RCihitm5Z5UZAtrkQV8WB+GH6RXal6MOsjelcGRS6qSZo35J5myeolpbnnXSx+OB/id6OGmksloK
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -