Offset 1, 8 lines modified | Offset 1, 8 lines modified |
1 | <FILENAME·filename="index.html"><html><head><title>The·Kate·Handbook</title><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-default.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-docs.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-localised.css"><meta·name="generator"·content="DocBook·XSL·Stylesheets·V1.76.1"><meta·name="description"·content="Kate·is·a·programmer's·text·editor·for·KDE·4·and·above.·This·handbook·documents·Kate·Version·3.11"><meta·name="keywords"·content="KDE,·kdebase,·Kate,·text,·editor,·programmer,·programming,·projects,·MDI,·Multi,·Document,·Interface,·terminal,·console"><link·rel="home"·href="index.html"·title="The·Kate·Handbook"><link·rel="next"·href="introduction.html"·title="Chapter 1. Introduction"><meta·http-equiv="Content-Type"·content="text/html;·charset=utf-8"><meta·name="GENERATOR"·content="KDE·XSL·Stylesheet·V1.14·using·libxslt"></head><body·bgcolor="white"·text="black"·link="#0000FF"·vlink="#840084"·alink="#0000FF"><div·id="co·✂ | 1 | <FILENAME·filename="index.html"><html><head><title>The·Kate·Handbook</title><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-default.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-docs.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-localised.css"><meta·name="generator"·content="DocBook·XSL·Stylesheets·V1.76.1"><meta·name="description"·content="Kate·is·a·programmer's·text·editor·for·KDE·4·and·above.·This·handbook·documents·Kate·Version·3.11"><meta·name="keywords"·content="KDE,·kdebase,·Kate,·text,·editor,·programmer,·programming,·projects,·MDI,·Multi,·Document,·Interface,·terminal,·console"><link·rel="home"·href="index.html"·title="The·Kate·Handbook"><link·rel="next"·href="introduction.html"·title="Chapter 1. Introduction"><meta·http-equiv="Content-Type"·content="text/html;·charset=utf-8"><meta·name="GENERATOR"·content="KDE·XSL·Stylesheet·V1.14·using·libxslt"></head><body·bgcolor="white"·text="black"·link="#0000FF"·vlink="#840084"·alink="#0000FF"><div·id="co·✂ |
2 | Welcome·to·<span·class="application">Kate</span>,·a·programmer's·text·editor·for·<acronym·class="acronym">KDE</acronym>·version·4·and | 2 | Welcome·to·<span·class="application">Kate</span>,·a·programmer's·text·editor·for·<acronym·class="acronym">KDE</acronym>·version·4·and |
3 | above.·Some·of·<span·class="application">Kate</span>'s·many·features·include·configurable·syntax | 3 | above.·Some·of·<span·class="application">Kate</span>'s·many·features·include·configurable·syntax |
4 | highlighting·for·languages·ranging·from·C·and·C++·to | 4 | highlighting·for·languages·ranging·from·C·and·C++·to |
5 | <acronym·class="acronym">HTML</acronym>·to·bash·scripts,·the·ability·to·create·and | 5 | <acronym·class="acronym">HTML</acronym>·to·bash·scripts,·the·ability·to·create·and |
6 | maintain·projects,·a·multiple·document·interface | 6 | maintain·projects,·a·multiple·document·interface |
7 | (<acronym·class="acronym">MDI</acronym>),·and·a·self-contained·terminal·emulator. | 7 | (<acronym·class="acronym">MDI</acronym>),·and·a·self-contained·terminal·emulator. |
8 | </p><p> | 8 | </p><p> |
Offset 148, 28 lines modified | Offset 148, 28 lines modified |
148 | data·to·the·right·of·the·text·cursor.·Overwrite·mode·causes·the·entry·of | 148 | data·to·the·right·of·the·text·cursor.·Overwrite·mode·causes·the·entry·of |
149 | each·character·to·eliminate·the·current·character.</p></td></tr><tr><td><p><span·class="keycap"><strong>Left·Arrow</strong></span></p></td><td><p>Move·the·cursor·one·character·to·the·left·</p></td></tr><tr><td><p><span·class="keycap"><strong>Right·Arrow</strong></span></p></td><td><p>·Move·the·cursor·one·character·to·the·right·</p></td></tr><tr><td><p><span·class="keycap"><strong>Up·Arrow</strong></span></p></td><td><p>·Move·the·cursor·up·one·line··</p></td></tr><tr><td><p><span·class="keycap"><strong>Down·Arrow</strong></span></p></td><td><p>·Move·the·cursor·down·one·line·</p></td></tr><tr><td><p><span·class="keycap"><strong>Page·Up</strong></span></p></td><td><p>·Move·the·cursor·up·one·page··</p></td></tr><tr><td><p><span·class="keycap"><strong>Page·Down</strong></span></p></td><td><p>Move·the·cursor·down·one·page··</p></td></tr><tr><td><p><span·class="keycap"><strong>Backspace</strong></span></p></td><td><p>·Delete·the·character·to·the·left·of·the·cursor·</p></td></tr><tr><td><p><span·class="keycap"><stron·✂ | 149 | each·character·to·eliminate·the·current·character.</p></td></tr><tr><td><p><span·class="keycap"><strong>Left·Arrow</strong></span></p></td><td><p>Move·the·cursor·one·character·to·the·left·</p></td></tr><tr><td><p><span·class="keycap"><strong>Right·Arrow</strong></span></p></td><td><p>·Move·the·cursor·one·character·to·the·right·</p></td></tr><tr><td><p><span·class="keycap"><strong>Up·Arrow</strong></span></p></td><td><p>·Move·the·cursor·up·one·line··</p></td></tr><tr><td><p><span·class="keycap"><strong>Down·Arrow</strong></span></p></td><td><p>·Move·the·cursor·down·one·line·</p></td></tr><tr><td><p><span·class="keycap"><strong>Page·Up</strong></span></p></td><td><p>·Move·the·cursor·up·one·page··</p></td></tr><tr><td><p><span·class="keycap"><strong>Page·Down</strong></span></p></td><td><p>Move·the·cursor·down·one·page··</p></td></tr><tr><td><p><span·class="keycap"><strong>Backspace</strong></span></p></td><td><p>·Delete·the·character·to·the·left·of·the·cursor·</p></td></tr><tr><td><p><span·class="keycap"><stron·✂ |
150 | text)</p></td></tr><tr><td><p><span·class="keycap"><strong>Shift</strong></span>+<span·class="keycap"><strong>Enter</strong></span></p></td><td><p>Insert·newline·including·leading·characters·of·the·current·line·which·are·not·letters·or·numbers. | 150 | text)</p></td></tr><tr><td><p><span·class="keycap"><strong>Shift</strong></span>+<span·class="keycap"><strong>Enter</strong></span></p></td><td><p>Insert·newline·including·leading·characters·of·the·current·line·which·are·not·letters·or·numbers. |
151 | It·is·useful·<abbr·class="abbrev">e.g.</abbr>·to·write·comments·in·the·code:·At·the·end·of·the·line·<span·class="quote">“<span·class="quote">//·some·text</span>”</span>·press | 151 | It·is·useful·<abbr·class="abbrev">e.g.</abbr>·to·write·comments·in·the·code:·At·the·end·of·the·line·<span·class="quote">“<span·class="quote">//·some·text</span>”</span>·press |
152 | this·shortcut·and·the·next·line·starts·already·with·<span·class="quote">“<span·class="quote">//·</span>”</span>.·So·you·do·not·have·to·enter·the·comment | 152 | this·shortcut·and·the·next·line·starts·already·with·<span·class="quote">“<span·class="quote">//·</span>”</span>.·So·you·do·not·have·to·enter·the·comment |
153 | characters·at·the·beginning·of·each·new·line·with·comments.</p></td></tr><tr><td><p><span·class="keycap"><strong>Shift</strong></span>+<span·class="keycap"><strong>Left·Arrow</strong></span></p></td><td><p>·Mark·text·one·character·to·the·left·</p></td></tr><tr><td><p><span·class="keycap"><strong>Shift</strong></span>+<span·class="keycap"><strong>Right·Arrow</strong></span></p></td><td><p>·Mark·text·one·character·to·the·right·</p></td></tr><tr><td><p><span·class="keycap"><strong>F1</strong></span></p></td><td><p>·Help</p></td></tr><tr><td><p><span·class="keycap"><strong>Shift</strong></span>+<span·class="keycap"><strong>F1</strong></span></p></td><td><p><a·class="link"·href="fundamentals-getting-help.html#whats-this">What's·this?</a></p></td></tr><tr><td><p><span·class="keycap"><strong>Ctrl</strong></span>+<span·class="keycap"><strong>F</strong></span></p></td><td><p><a·class="link"·href="configuring-kate.html#find">·Find</a></p></td></tr><tr><td><p><span·class="keycap"><strong>F3</strong></span></p></td><td><·✂ | 153 | characters·at·the·beginning·of·each·new·line·with·comments.</p></td></tr><tr><td><p><span·class="keycap"><strong>Shift</strong></span>+<span·class="keycap"><strong>Left·Arrow</strong></span></p></td><td><p>·Mark·text·one·character·to·the·left·</p></td></tr><tr><td><p><span·class="keycap"><strong>Shift</strong></span>+<span·class="keycap"><strong>Right·Arrow</strong></span></p></td><td><p>·Mark·text·one·character·to·the·right·</p></td></tr><tr><td><p><span·class="keycap"><strong>F1</strong></span></p></td><td><p>·Help</p></td></tr><tr><td><p><span·class="keycap"><strong>Shift</strong></span>+<span·class="keycap"><strong>F1</strong></span></p></td><td><p><a·class="link"·href="fundamentals-getting-help.html#whats-this">What's·this?</a></p></td></tr><tr><td><p><span·class="keycap"><strong>Ctrl</strong></span>+<span·class="keycap"><strong>F</strong></span></p></td><td><p><a·class="link"·href="configuring-kate.html#find">·Find</a></p></td></tr><tr><td><p><span·class="keycap"><strong>F3</strong></span></p></td><td><·✂ |
154 | the·terminology·of·<span·class="application">Kate</span>,·and·how·do·you·get·the·most·out·of·it?·This | 154 | the·terminology·of·<span·class="application">Kate</span>,·and·how·do·you·get·the·most·out·of·it?·This |
155 | chapter·will·explain·all·of·that,·and·even·more.</p><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="kate-mdi-overview-mainwindow"></a>The·Main·Window</h4></div></div></div><p><a·class="indexterm"·name="idp148940088"></a> | 155 | chapter·will·explain·all·of·that,·and·even·more.</p><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="kate-mdi-overview-mainwindow"></a>The·Main·Window</h4></div></div></div><p><a·class="indexterm"·name="idp148919608"></a> |
156 | The·<span·class="application">Kate</span>·Main·Window·is·a·standard·<acronym·class="acronym">KDE</acronym>·application·window, | 156 | The·<span·class="application">Kate</span>·Main·Window·is·a·standard·<acronym·class="acronym">KDE</acronym>·application·window, |
157 | with·the·addition·of·side·bars·containing·tool·views.·It·has·a | 157 | with·the·addition·of·side·bars·containing·tool·views.·It·has·a |
158 | menubar·with·all·the·common·menus,·and·some·more,·and·a·toolbar | 158 | menubar·with·all·the·common·menus,·and·some·more,·and·a·toolbar |
159 | providing·access·to·commonly·used·commands.</p><p>The·most·important·part·of·the·window·is·the·editing·area,·by | 159 | providing·access·to·commonly·used·commands.</p><p>The·most·important·part·of·the·window·is·the·editing·area,·by |
160 | default·displaying·a·single·text·editor·component,·in·which·you·can | 160 | default·displaying·a·single·text·editor·component,·in·which·you·can |
161 | work·with·your·documents.</p><p>The·docking·capabilities·of·the·window·is·used·for·the·tool | 161 | work·with·your·documents.</p><p>The·docking·capabilities·of·the·window·is·used·for·the·tool |
162 | windows:</p><div·class="itemizedlist"><ul·class="itemizedlist"·type="disc"><li·class="listitem"><p><a·class="link"·href="kate-mdi.html#kate-mdi-tools-file-list"·title="The·Documents·List">The·Documents·List</a></p></li><li·class="listitem"><p><a·class="link"·href="kate-application-plugin-fsbrowser.html"·title="Filesystem·Browser">The·Filesystem | 162 | windows:</p><div·class="itemizedlist"><ul·class="itemizedlist"·type="disc"><li·class="listitem"><p><a·class="link"·href="kate-mdi.html#kate-mdi-tools-file-list"·title="The·Documents·List">The·Documents·List</a></p></li><li·class="listitem"><p><a·class="link"·href="kate-application-plugin-fsbrowser.html"·title="Filesystem·Browser">The·Filesystem |
163 | Browser</a></p></li><li·class="listitem"><p><a·class="link"·href="kate-application-plugin-konsole.html"·title="Terminal·Tool·View·Plugin">The·Built·in·Terminal·Emulator</a></p></li></ul></div><p>And·possibly·other·tool·views,·for·example·provided·by | 163 | Browser</a></p></li><li·class="listitem"><p><a·class="link"·href="kate-application-plugin-konsole.html"·title="Terminal·Tool·View·Plugin">The·Built·in·Terminal·Emulator</a></p></li></ul></div><p>And·possibly·other·tool·views,·for·example·provided·by |
164 | plugins.</p><p>Tool·views·can·be·positioned·in·any·sidebar,·to·move·a·tool·right·click | 164 | plugins.</p><p>Tool·views·can·be·positioned·in·any·sidebar,·to·move·a·tool·right·click |
165 | its·sidebar·button·and·select·from·the·<span·class="mousebutton">right</span>·mouse·button·menu</p><p>A·tool·view·can·be·marked·as·<span·class="emphasis"><em>persistent</em></span>·in·the·<span·class="mousebutton">right</span>·mouse·button | 165 | its·sidebar·button·and·select·from·the·<span·class="mousebutton">right</span>·mouse·button·menu</p><p>A·tool·view·can·be·marked·as·<span·class="emphasis"><em>persistent</em></span>·in·the·<span·class="mousebutton">right</span>·mouse·button |
166 | menu·for·its·sidebar·button.·The·sidebar·can·contain | 166 | menu·for·its·sidebar·button.·The·sidebar·can·contain |
167 | more·tools·at·one·time·so·that·when·a·tool·is·persistent·other·tools·can·be | 167 | more·tools·at·one·time·so·that·when·a·tool·is·persistent·other·tools·can·be |
168 | shown·simultaneously.</p></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="kate-mdi-editor"></a>The·Editor·area</h3></div></div></div><p><a·class="indexterm"·name="idp148948792"></a> | 168 | shown·simultaneously.</p></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="kate-mdi-editor"></a>The·Editor·area</h3></div></div></div><p><a·class="indexterm"·name="idp148928312"></a> |
169 | <span·class="application">Kate</span>·is·capable·of·having·more·than·one·document·open·at·the | 169 | <span·class="application">Kate</span>·is·capable·of·having·more·than·one·document·open·at·the |
170 | same·time,·and·also·of·splitting·the·editing·area·into·any·number·of | 170 | same·time,·and·also·of·splitting·the·editing·area·into·any·number·of |
171 | frames,·similar·to·how·for·example·<span·class="application">Konqueror</span>·or·the·popular | 171 | frames,·similar·to·how·for·example·<span·class="application">Konqueror</span>·or·the·popular |
172 | <span·class="application">emacs</span>·text·editor·works.·This·way·you·can | 172 | <span·class="application">emacs</span>·text·editor·works.·This·way·you·can |
173 | view·several·documents·at·the·same·time,·or·more·instances·of·the·same | 173 | view·several·documents·at·the·same·time,·or·more·instances·of·the·same |
174 | document,·handy·for·example·if·your·document·contains·definitions·in | 174 | document,·handy·for·example·if·your·document·contains·definitions·in |
175 | the·top·that·you·want·to·see·often·for·reference.·Or·you·could·view·a | 175 | the·top·that·you·want·to·see·often·for·reference.·Or·you·could·view·a |
Offset 181, 15 lines modified | Offset 181, 15 lines modified |
181 | current·editor.</p><p>It·is·currently·not·possible·to·have·more·instances·of·the·same | 181 | current·editor.</p><p>It·is·currently·not·possible·to·have·more·instances·of·the·same |
182 | document·open·in·the·sense·that·one·instance·will·be·edited·while·the | 182 | document·open·in·the·sense·that·one·instance·will·be·edited·while·the |
183 | other·will·not.</p><p>When·splitting·an·editor·into·two·frames,·it·is·divided·into·two | 183 | other·will·not.</p><p>When·splitting·an·editor·into·two·frames,·it·is·divided·into·two |
184 | equally·sized·frames,·both·displaying·the·current·document·of·that | 184 | equally·sized·frames,·both·displaying·the·current·document·of·that |
185 | editor.·The·new·frame·will·be·at·the·bottom·(in·the·case·of·a | 185 | editor.·The·new·frame·will·be·at·the·bottom·(in·the·case·of·a |
186 | horizontal·split)·or·at·the·right·(for·a·vertical·split).·The·new | 186 | horizontal·split)·or·at·the·right·(for·a·vertical·split).·The·new |
187 | frame·gets·the·focus,·which·is·visualized·by·the·blinking·cursor·bar·in·the | 187 | frame·gets·the·focus,·which·is·visualized·by·the·blinking·cursor·bar·in·the |
188 | focused·frame.</p></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="kate-mdi-tools-file-list"></a>The·Documents·List</h3></div></div></div><p><a·class="indexterm"·name="idp148953016"></a> | 188 | focused·frame.</p></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="kate-mdi-tools-file-list"></a>The·Documents·List</h3></div></div></div><p><a·class="indexterm"·name="idp148932536"></a> |
189 | The·documents·list·displays·a·list·of·all·documents·currently·open·in | 189 | The·documents·list·displays·a·list·of·all·documents·currently·open·in |
190 | <span·class="application">Kate</span>.·Modified·files·will·have·a·small·<span·class="guiicon">floppy | 190 | <span·class="application">Kate</span>.·Modified·files·will·have·a·small·<span·class="guiicon">floppy |
191 | disk</span>·icon·on·their·left·to·indicate·that·state.</p><p>By·default,·the·Documents·list·appears·in | 191 | disk</span>·icon·on·their·left·to·indicate·that·state.</p><p>By·default,·the·Documents·list·appears·in |
192 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Tree·Mode</span></span>,·which·displays·the·folder·structure | 192 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Tree·Mode</span></span>,·which·displays·the·folder·structure |
193 | surrounding·all·currently·open·documents.·Also·available·is | 193 | surrounding·all·currently·open·documents.·Also·available·is |
194 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">List·Mode</span></span>,·which·displays·a·simple·list·of·all | 194 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">List·Mode</span></span>,·which·displays·a·simple·list·of·all |
195 | open·documents.·You·can·switch·modes·by·right-clicking·on·the·list·and·selecting | 195 | open·documents.·You·can·switch·modes·by·right-clicking·on·the·list·and·selecting |
Offset 249, 15 lines modified | Offset 249, 15 lines modified |
249 | However,·if·you·prefer·the·old·<span·class="application">Kate</span>·behavior·(one·instance·opens·all·files), | 249 | However,·if·you·prefer·the·old·<span·class="application">Kate</span>·behavior·(one·instance·opens·all·files), |
250 | you·can·easily·achieve·that·by·following·this·simple·strategy: | 250 | you·can·easily·achieve·that·by·following·this·simple·strategy: |
| |
251 | </p><div·class="itemizedlist"><ul·class="itemizedlist"·type="disc"><li·class="listitem"><p>Make·kate·always·start·with·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="option"><code·class="option">--use</code></span> | 251 | </p><div·class="itemizedlist"><ul·class="itemizedlist"·type="disc"><li·class="listitem"><p>Make·kate·always·start·with·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="option"><code·class="option">--use</code></span> |
252 | parameter·by·adding·that·to·the·command·in·the·application·preferences, | 252 | parameter·by·adding·that·to·the·command·in·the·application·preferences, |
253 | and·additionally·using·a·shell·alias.</p></li><li·class="listitem"><p>Configure·<span·class="application">Kate</span>·to·load·the·last·used·session·at·startup.</p></li><li·class="listitem"><p>Configure·<span·class="application">Kate</span>·to·save·the·file·list·when·closing·a·session. | 253 | and·additionally·using·a·shell·alias.</p></li><li·class="listitem"><p>Configure·<span·class="application">Kate</span>·to·load·the·last·used·session·at·startup.</p></li><li·class="listitem"><p>Configure·<span·class="application">Kate</span>·to·save·the·file·list·when·closing·a·session. |
254 | </p></li><li·class="listitem"><p>Load·the·default·session·once.</p></li></ul></div><p> | 254 | </p></li><li·class="listitem"><p>Load·the·default·session·once.</p></li></ul></div><p> |
255 | </p></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="kate-mdi.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="fundamentals-getting-help.html">Next</a></td></tr><tr><td·class="prevCell">Working·With·the·<span·class="application">Kate</span>·<acronym·class="acronym">MDI</acronym> </td><td·class="upCell">The·Fundamentals</td><td·class="nextCell"> Getting·Help</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME><FILENAME·filename="fundamentals-getting-help.html"><html><head><title>Getting·Help</title><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-default.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-docs.c·✂ | 255 | </p></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="kate-mdi.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="fundamentals-getting-help.html">Next</a></td></tr><tr><td·class="prevCell">Working·With·the·<span·class="application">Kate</span>·<acronym·class="acronym">MDI</acronym> </td><td·class="upCell">The·Fundamentals</td><td·class="nextCell"> Getting·Help</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME><FILENAME·filename="fundamentals-getting-help.html"><html><head><title>Getting·Help</title><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-default.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-docs.c·✂ |
256 | configuration·options,·tools,·dialogs,·plugins·<abbr·class="abbrev">etc.</abbr>·as·well·as | 256 | configuration·options,·tools,·dialogs,·plugins·<abbr·class="abbrev">etc.</abbr>·as·well·as |
257 | descriptions·of·the·<span·class="application">Kate</span>·window,·the·editor·and·various·concepts | 257 | descriptions·of·the·<span·class="application">Kate</span>·window,·the·editor·and·various·concepts |
258 | used·in·the·application.</p><p>Press·<span·class="keycap"><strong>F1</strong></span>·or·use·the | 258 | used·in·the·application.</p><p>Press·<span·class="keycap"><strong>F1</strong></span>·or·use·the |
259 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Help</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem"><span·class="application">Kate</span>·Handbook</span></span>·menu·topic·to·view·this | 259 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Help</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem"><span·class="application">Kate</span>·Handbook</span></span>·menu·topic·to·view·this |
260 | manual.</p></dd><dt><a·name="whats-this"></a><span·class="term">What's·This·Help</span></dt><dd><p>What's·This·help·offers·immediate·help·with·single·elements·of | 260 | manual.</p></dd><dt><a·name="whats-this"></a><span·class="term">What's·This·Help</span></dt><dd><p>What's·This·help·offers·immediate·help·with·single·elements·of |
261 | graphical·windows,·such·as·buttons·or·other·window·areas.</p><p>We·strive·to·provide·What's·This·help·for·any·elements·for·which | 261 | graphical·windows,·such·as·buttons·or·other·window·areas.</p><p>We·strive·to·provide·What's·This·help·for·any·elements·for·which |
262 | it·makes·sense.·It·is·available·throughout·the·configuration·dialog, | 262 | it·makes·sense.·It·is·available·throughout·the·configuration·dialog, |
Offset 265, 19 lines modified | Offset 265, 19 lines modified |
265 | <span·class="keycap"><strong>Shift</strong></span>+<span·class="keycap"><strong>F1</strong></span>·or·use·the | 265 | <span·class="keycap"><strong>Shift</strong></span>+<span·class="keycap"><strong>F1</strong></span>·or·use·the |
266 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Help</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">What's | 266 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Help</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">What's |
267 | This</span></span>·menu·item·to·enable·What's·This | 267 | This</span></span>·menu·item·to·enable·What's·This |
268 | mode.·The·cursor·will·turn·into·an·arrow·with·a·question·mark,·and·you | 268 | mode.·The·cursor·will·turn·into·an·arrow·with·a·question·mark,·and·you |
269 | can·now·click·any·element·in·the·window·to·read·the·What's·This·help | 269 | can·now·click·any·element·in·the·window·to·read·the·What's·This·help |
270 | for·that·element,·if·it·is·available.</p></dd><dt><span·class="term">Help·Buttons·in·Dialogs</span></dt><dd><p>Some·dialogs·have·a·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Help</span></span>·Button.·Pressing | 270 | for·that·element,·if·it·is·available.</p></dd><dt><span·class="term">Help·Buttons·in·Dialogs</span></dt><dd><p>Some·dialogs·have·a·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Help</span></span>·Button.·Pressing |
271 | it·will·start·the·<span·class="application">KHelpCenter</span>·and·open·the·relevant | 271 | it·will·start·the·<span·class="application">KHelpCenter</span>·and·open·the·relevant |
272 | documentation.</p></dd></dl></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp149006136"></a>With·Your·Text·Files</h3></div></div></div><p><span·class="application">Kate</span>·does·not·(yet!)·provide·any·means·for·reading·document | 272 | documentation.</p></dd></dl></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp148977464"></a>With·Your·Text·Files</h3></div></div></div><p><span·class="application">Kate</span>·does·not·(yet!)·provide·any·means·for·reading·document |
273 | related·documentation.·Depending·on·the·file·you·are·editing,·you·may | 273 | related·documentation.·Depending·on·the·file·you·are·editing,·you·may |
274 | find·the·<a·class="link"·href="kate-application-plugin-konsole.html"·title="Terminal·Tool·View·Plugin">Built·in | 274 | find·the·<a·class="link"·href="kate-application-plugin-konsole.html"·title="Terminal·Tool·View·Plugin">Built·in |
275 | Terminal·Emulator</a>·helpful·for·viewing·related·<span·class="trademark">UNIX</span>®·manual·pages·or | 275 | Terminal·Emulator</a>·helpful·for·viewing·related·<span·class="trademark">UNIX</span>®·manual·pages·or |
276 | info·documentation,·or·you·can·use·<span·class="application">Konqueror</span>.</p></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp149008952"></a>Articles·on·<span·class="application">Kate</span></h3></div></div></div><p><span·class="application">Kate</span>'s·homepage·provides·some·<a·class="ulink"·href="http://kate-editor.org/featured-articles"·target="_top"> | 276 | info·documentation,·or·you·can·use·<span·class="application">Konqueror</span>.</p></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp148980280"></a>Articles·on·<span·class="application">Kate</span></h3></div></div></div><p><span·class="application">Kate</span>'s·homepage·provides·some·<a·class="ulink"·href="http://kate-editor.org/featured-articles"·target="_top"> |
277 | Articles·and·Howtos</a>·with·further·information·beyond·the·scope·of·this·handbook.</p></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="fundamentals-using-sessions.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="kate-part.html">Next</a></td></tr><tr><td·class="prevCell">Using·Sessions </td><td·class="upCell">The·Fundamentals</td><td·class="nextCell"> Working·with·the·<span·class="application">Kate</span>·editor</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="introduction.html">Prev</a></td><td·class="upCell"><·✂ | 277 | Articles·and·Howtos</a>·with·further·information·beyond·the·scope·of·this·handbook.</p></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="fundamentals-using-sessions.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="kate-part.html">Next</a></td></tr><tr><td·class="prevCell">Using·Sessions </td><td·class="upCell">The·Fundamentals</td><td·class="nextCell"> Working·with·the·<span·class="application">Kate</span>·editor</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="introduction.html">Prev</a></td><td·class="upCell"><·✂ |
278 | editor·is·shared·between·<span·class="application">Kate</span>·and·<span·class="application">KWrite</span>,·and·it·can·also·be·used·in·<span·class="application">Konqueror</span> | 278 | editor·is·shared·between·<span·class="application">Kate</span>·and·<span·class="application">KWrite</span>,·and·it·can·also·be·used·in·<span·class="application">Konqueror</span> |
279 | for·displaying·text·files·from·your·local·computer,·or·from·the | 279 | for·displaying·text·files·from·your·local·computer,·or·from·the |
280 | network.</p><p>The·editor·is·composed·of·the·following·components:</p><div·class="variablelist"><dl><dt><span·class="term">The·editing·area</span></dt><dd><p>This·is·where·the·text·of·your·document·is·located.</p></dd><dt><span·class="term">The·Scrollbars</span></dt><dd><p>The·scrollbars·indicate·the··position·of·the·visible·part·of | 280 | network.</p><p>The·editor·is·composed·of·the·following·components:</p><div·class="variablelist"><dl><dt><span·class="term">The·editing·area</span></dt><dd><p>This·is·where·the·text·of·your·document·is·located.</p></dd><dt><span·class="term">The·Scrollbars</span></dt><dd><p>The·scrollbars·indicate·the··position·of·the·visible·part·of |
281 | the·document·text,·and·can·be·used·to·move·around·the | 281 | the·document·text,·and·can·be·used·to·move·around·the |
282 | document.·Dragging·the·scrollbars·will·not·cause·the·insertion·cursor | 282 | document.·Dragging·the·scrollbars·will·not·cause·the·insertion·cursor |
283 | to·be·moved.</p><p>The·scrollbars·are·displayed·and·hidden·as·required.</p></dd><dt><span·class="term">The·Icon·Border</span></dt><dd><p>The·icon·border·is·a·small·pane·on·the·left·side·of·the·editor, | 283 | to·be·moved.</p><p>The·scrollbars·are·displayed·and·hidden·as·required.</p></dd><dt><span·class="term">The·Icon·Border</span></dt><dd><p>The·icon·border·is·a·small·pane·on·the·left·side·of·the·editor, |
Offset 390, 15 lines modified | Offset 390, 15 lines modified |
390 | case·(upper·or·lower)·of·each·of·the·characters·in·the·search··pattern.</p><p>Click·on·the·button·with·a·green·arrow·icon·at·the·right·side·of·the·incremental·search·bar·to | 390 | case·(upper·or·lower)·of·each·of·the·characters·in·the·search··pattern.</p><p>Click·on·the·button·with·a·green·arrow·icon·at·the·right·side·of·the·incremental·search·bar·to |
391 | switch·to·the·power·search·and·replace·bar. | 391 | switch·to·the·power·search·and·replace·bar. |
392 | </p><p> | 392 | </p><p> |
393 | To·repeat·the·last·find·operation,·if·any,·without·calling·the·incremental | 393 | To·repeat·the·last·find·operation,·if·any,·without·calling·the·incremental |
394 | search·bar,·use·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Edit</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Find·Next</span></span>·(<span·class="shortcut"><strong><span·class="keycap"><strong>F3</strong></span></strong></span>) | 394 | search·bar,·use·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Edit</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Find·Next</span></span>·(<span·class="shortcut"><strong><span·class="keycap"><strong>F3</strong></span></strong></span>) |
395 | or | 395 | or |
396 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Edit</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Find·Previous</span></span>·(<span·class="shortcut"><strong><span·class="keycap"><strong>Shift</strong></span>+<span·class="keycap"><strong>F3</strong></span></strong></span>). | 396 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Edit</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Find·Previous</span></span>·(<span·class="shortcut"><strong><span·class="keycap"><strong>Shift</strong></span>+<span·class="keycap"><strong>F3</strong></span></strong></span>). |
397 | </p></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp149353144"></a>Replacing·Text</h3></div></div></div><p>To·replace·text,·launch·the·power·search·and·replace·bar | 397 | </p></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp149344952"></a>Replacing·Text</h3></div></div></div><p>To·replace·text,·launch·the·power·search·and·replace·bar |
398 | using·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Edit</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Replace</span></span>·command,·or·the | 398 | using·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Edit</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Replace</span></span>·command,·or·the |
399 | <span·class="keycap"><strong>Ctrl</strong></span>+<span·class="keycap"><strong>R</strong></span>·shortcut.</p><p>On·the·upper·left·side·of·the·bar·is·a·button·with·an·icon·to·close·the·bar,·followed·by·a·small·text | 399 | <span·class="keycap"><strong>Ctrl</strong></span>+<span·class="keycap"><strong>R</strong></span>·shortcut.</p><p>On·the·upper·left·side·of·the·bar·is·a·button·with·an·icon·to·close·the·bar,·followed·by·a·small·text |
400 | box·for·entering·the·search·pattern.</p><p>You·can·control·the·search·mode·by·selecting·the·options·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Plain·Text</span></span>, | 400 | box·for·entering·the·search·pattern.</p><p>You·can·control·the·search·mode·by·selecting·the·options·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Plain·Text</span></span>, |
401 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Whole·Words</span></span>,·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Escape·Sequences</span></span>·or | 401 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Whole·Words</span></span>,·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Escape·Sequences</span></span>·or |
402 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Regular·Expression</span></span>·described·above. | 402 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Regular·Expression</span></span>·described·above. |
403 | </p><p>Use·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Next</span></span>·or·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Previous</span></span>·button·to·jump | 403 | </p><p>Use·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Next</span></span>·or·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Previous</span></span>·button·to·jump |
404 | to·the·next·or·previous·match·in·the·document.</p><p>Enter·the·text·to·replace·with·in·the·text·box·labelled·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Replace</span></span> | 404 | to·the·next·or·previous·match·in·the·document.</p><p>Enter·the·text·to·replace·with·in·the·text·box·labelled·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Replace</span></span> |
Offset 786, 15 lines modified | Offset 786, 15 lines modified |
786 | ················the·owner·address·in·your·standard·<acronym·class="acronym">KDE</acronym> | 786 | ················the·owner·address·in·your·standard·<acronym·class="acronym">KDE</acronym> |
787 | ················addressbook.</p></dd></dl></div><p> | 787 | ················addressbook.</p></dd></dl></div><p> |
788 | ······</p><p>Any·macro·not·in·the·above·list·is·treated·as·an·editable·variable | 788 | ······</p><p>Any·macro·not·in·the·above·list·is·treated·as·an·editable·variable |
789 | ········no·matter·the·prefix. | 789 | ········no·matter·the·prefix. |
790 | ········If·the·same·variable·occurs·multiple·times·in·the·template,·they·can·be | 790 | ········If·the·same·variable·occurs·multiple·times·in·the·template,·they·can·be |
791 | ········edited·at·once·after·creating·a·document·from·the·template.</p></div><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="katefiletemplates-cursor"></a>Setting·the·cursor·position</h4></div></div></div><p>The·special·macro·<strong·class="userinput"><code>${cursor}</code></strong>·will·be·replaced | 791 | ········edited·at·once·after·creating·a·document·from·the·template.</p></div><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="katefiletemplates-cursor"></a>Setting·the·cursor·position</h4></div></div></div><p>The·special·macro·<strong·class="userinput"><code>${cursor}</code></strong>·will·be·replaced |
792 | ········with·a·vertical·bar·and·added·to·the·end·of·the·list·of·editable·variables, | 792 | ········with·a·vertical·bar·and·added·to·the·end·of·the·list·of·editable·variables, |
793 | ········independent·of·its·location·in·the·text.</p></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp148608440"></a>Thanks·and·Acknowledgments</h3></div></div></div><p> | 793 | ········independent·of·its·location·in·the·text.</p></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp149956024"></a>Thanks·and·Acknowledgments</h3></div></div></div><p> |
794 | ······<span·class="application">Kate</span>·Plugin·<span·class="quote">“<span·class="quote">File·Templates</span>”</span>·copyright·2004·<span·class="firstname">Anders</span>·<span·class="surname">Lund</span> | 794 | ······<span·class="application">Kate</span>·Plugin·<span·class="quote">“<span·class="quote">File·Templates</span>”</span>·copyright·2004·<span·class="firstname">Anders</span>·<span·class="surname">Lund</span> |
795 | ······<code·class="email">(anders·AT·alweb.dk)</code>. | 795 | ······<code·class="email">(anders·AT·alweb.dk)</code>. |
796 | ····</p><p>Documentation·copyright·2004·<span·class="firstname">Anders</span>·<span·class="surname">Lund</span></p></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="pate.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="kate-application-plugin-xmlcheck.html">Next</a></td></tr><tr><td·class="prevCell">Python·Pâté·Plugins </td><td·class="upCell">Working·with·Plugins</td><td·class="nextCell"> <acronym·class="acronym">XML</acronym>·Validation</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME><FILENAME·filename="kate-application-plugin-xmlcheck.html"><html><head><title>XML·Validation</title><link·rel="stylesheet"·type="text/css"·href="help:/co·✂ | 796 | ····</p><p>Documentation·copyright·2004·<span·class="firstname">Anders</span>·<span·class="surname">Lund</span></p></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="pate.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="kate-application-plugin-xmlcheck.html">Next</a></td></tr><tr><td·class="prevCell">Python·Pâté·Plugins </td><td·class="upCell">Working·with·Plugins</td><td·class="nextCell"> <acronym·class="acronym">XML</acronym>·Validation</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME><FILENAME·filename="kate-application-plugin-xmlcheck.html"><html><head><title>XML·Validation</title><link·rel="stylesheet"·type="text/css"·href="help:/co·✂ |
797 | will·appear·at·the·bottom·of·<span·class="application">Kate</span>'s·main·window.·You·can·click·on·an·error·message | 797 | will·appear·at·the·bottom·of·<span·class="application">Kate</span>'s·main·window.·You·can·click·on·an·error·message |
798 | to·jump·to·the·corresponding·place·in·the·file.·If·the·file·has·a·<span·class="quote">“<span·class="quote">DOCTYPE</span>”</span> | 798 | to·jump·to·the·corresponding·place·in·the·file.·If·the·file·has·a·<span·class="quote">“<span·class="quote">DOCTYPE</span>”</span> |
799 | the·DTD·given·with·this·doctype·will·be·used·to·check·the·file·for·validity.·The | 799 | the·DTD·given·with·this·doctype·will·be·used·to·check·the·file·for·validity.·The |
800 | DTD·is·expected·at·a·position·relative·to·the·current·file,·<abbr·class="abbrev">e.g.</abbr>·if·the·doctype | 800 | DTD·is·expected·at·a·position·relative·to·the·current·file,·<abbr·class="abbrev">e.g.</abbr>·if·the·doctype |
Offset 1059, 25 lines modified | Offset 1059, 25 lines modified |
1059 | the·desired·driver,·you·need·to·install·it.··Then,·press·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Next</span></span>. | 1059 | the·desired·driver,·you·need·to·install·it.··Then,·press·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Next</span></span>. |
1060 | </p><p>If·the·database·you·selected·uses·a·file,·simply·indicate·the·database's | 1060 | </p><p>If·the·database·you·selected·uses·a·file,·simply·indicate·the·database's |
1061 | location·and·press·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Next</span></span>·button.··If·it·requires·connecting | 1061 | location·and·press·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Next</span></span>·button.··If·it·requires·connecting |
1062 | to·a·server,·you·must·enter·the·hostname·of·the·server,·your·username·and·password, | 1062 | to·a·server,·you·must·enter·the·hostname·of·the·server,·your·username·and·password, |
1063 | and·any·other·information·that·particular·driver·may·require.·Then·press | 1063 | and·any·other·information·that·particular·driver·may·require.·Then·press |
1064 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Next</span></span>.</p><p>Finally,·give·a·name·to·your·connection,·and·press·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Finish</span></span>.</p></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="sql-querying"></a>Running·Queries</h3></div></div></div><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="sql-querying-insert-delete-update"></a>INSERT/DELETE/UPDATE</h4></div></div></div><p>You·can·insert,·delete,·and·update·data·using·the·SQL·plugin·just·as | 1064 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Next</span></span>.</p><p>Finally,·give·a·name·to·your·connection,·and·press·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Finish</span></span>.</p></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="sql-querying"></a>Running·Queries</h3></div></div></div><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="sql-querying-insert-delete-update"></a>INSERT/DELETE/UPDATE</h4></div></div></div><p>You·can·insert,·delete,·and·update·data·using·the·SQL·plugin·just·as |
1065 | you·would·from·the·command·line·or·from·within·a·program.··Simply·enter·a·query | 1065 | you·would·from·the·command·line·or·from·within·a·program.··Simply·enter·a·query |
1066 | and·press·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Run·query</span></span>.</p><div·class="example"><a·name="idp150310456"></a><p·class="title"><b>Example 4.1. Some·Example·Queries</b></p><div·class="example-contents"><div·class="variablelist"><dl><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>INSERT</strong></span></span></span></dt><dd><pre·class="programlisting"> | 1066 | and·press·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Run·query</span></span>.</p><div·class="example"><a·name="idp150265400"></a><p·class="title"><b>Example 4.1. Some·Example·Queries</b></p><div·class="example-contents"><div·class="variablelist"><dl><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>INSERT</strong></span></span></span></dt><dd><pre·class="programlisting"> |
1067 | INSERT·INTO·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>table_name</code></em></span>·("<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature1</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature2</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature3</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature4</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature5</code></em></span>") | 1067 | INSERT·INTO·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>table_name</code></em></span>·("<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature1</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature2</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature3</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature4</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature5</code></em></span>") |
1068 | VALUES·("<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>value1</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>value2</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>value3</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>value4</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>value5</code></em></span>"·) | 1068 | VALUES·("<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>value1</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>value2</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>value3</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>value4</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>value5</code></em></span>"·) |
1069 | </pre></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>DELETE</strong></span></span></span></dt><dd><pre·class="programlisting"> | 1069 | </pre></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>DELETE</strong></span></span></span></dt><dd><pre·class="programlisting"> |
1070 | DELETE·FROM·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>table_name</code></em></span>·WHERE·name·=·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>text</code></em></span>" | 1070 | DELETE·FROM·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>table_name</code></em></span>·WHERE·name·=·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>text</code></em></span>" |
1071 | </pre></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>UPDATE</strong></span></span></span></dt><dd><pre·class="programlisting"> | 1071 | </pre></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>UPDATE</strong></span></span></span></dt><dd><pre·class="programlisting"> |
1072 | UPDATE·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>table_name</code></em></span>·SET·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature1</code></em></span>"·=·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>text</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature2</code></em></span>"·=·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>text</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature3</code></em></span>"·=·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>text</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentat·✂ | 1072 | UPDATE·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>table_name</code></em></span>·SET·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature1</code></em></span>"·=·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>text</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature2</code></em></span>"·=·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>text</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>feature3</code></em></span>"·=·"<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>text</code></em></span>",·"<span·xmlns:doc="http://nwalsh.com/xsl/documentat·✂ |
1073 | </pre></dd></dl></div></div></div><br·class="example-break"></div><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="sql-querying-select"></a>SELECT</h4></div></div></div><p>After·running·a··<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>SELECT</strong></span></span>·query,·you·can·view·the·results | 1073 | </pre></dd></dl></div></div></div><br·class="example-break"></div><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="sql-querying-select"></a>SELECT</h4></div></div></div><p>After·running·a··<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>SELECT</strong></span></span>·query,·you·can·view·the·results |
1074 | as·a·table·that·will·appear·in·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">SQL·Data·Output</span></span>·tool·view·at | 1074 | as·a·table·that·will·appear·in·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">SQL·Data·Output</span></span>·tool·view·at |
1075 | the·bottom·of·<span·class="application">Kate</span>,·or·as·text·in·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">SQL·Text·Output</span></span>. | 1075 | the·bottom·of·<span·class="application">Kate</span>,·or·as·text·in·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">SQL·Text·Output</span></span>. |
1076 | If·there·is·an·error,·you·can·see·it·in·the·text·output.</p><div·class="example"><a·name="idp150328248"></a><p·class="title"><b>Example 4.2. Example·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command">SELECT</span></span>·Query</b></p><div·class="example-contents"><pre·class="programlisting"> | 1076 | If·there·is·an·error,·you·can·see·it·in·the·text·output.</p><div·class="example"><a·name="idp150283192"></a><p·class="title"><b>Example 4.2. Example·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command">SELECT</span></span>·Query</b></p><div·class="example-contents"><pre·class="programlisting"> |
1077 | SELECT·*·FROM·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>table_name</code></em></span> | 1077 | SELECT·*·FROM·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="replaceable"><em·class="replaceable"><code>table_name</code></em></span> |
1078 | </pre></div></div><br·class="example-break"><p>In·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">SQL·Data·Output</span></span>·tool·view,·there·are·several·buttons:</p><div·class="variablelist"><dl><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Resize·columns·to·contents</span></span></span></dt><dd><p>Changes·the·size·of·columns·to·fit·their·contents.</p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Resize·rows·to·contents</span></span></span></dt><dd><p>Changes·the·size·of·rows·to·fit·their·contents.</p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Copy</span></span></span></dt><dd><p>Selects·all·of·the·table·contents·and·copies·it·to·the·clipboard·buffer.</p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl·✂ | 1078 | </pre></div></div><br·class="example-break"><p>In·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">SQL·Data·Output</span></span>·tool·view,·there·are·several·buttons:</p><div·class="variablelist"><dl><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Resize·columns·to·contents</span></span></span></dt><dd><p>Changes·the·size·of·columns·to·fit·their·contents.</p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Resize·rows·to·contents</span></span></span></dt><dd><p>Changes·the·size·of·rows·to·fit·their·contents.</p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Copy</span></span></span></dt><dd><p>Selects·all·of·the·table·contents·and·copies·it·to·the·clipboard·buffer.</p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl·✂ |
1079 | current·document·in·the·Comma·Separated·Values·format.</p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Clear</span></span></span></dt><dd><p>Removes·everything·from·the·table·view</p></dd></dl></div><p>You·can·now·change·the·colors·displayed·in·the·table·in·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">SQL</span></span> | 1079 | current·document·in·the·Comma·Separated·Values·format.</p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">Clear</span></span></span></dt><dd><p>Removes·everything·from·the·table·view</p></dd></dl></div><p>You·can·now·change·the·colors·displayed·in·the·table·in·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">SQL</span></span> |
1080 | section·of·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Settings</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Configure·<span·class="application">Kate</span></span></span>.</p></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="sql-browsing"></a>Browsing</h3></div></div></div><p>You·can·browse·your·database·using·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">SQL·Schema·Browser</span></span> | 1080 | section·of·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Settings</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Configure·<span·class="application">Kate</span></span></span>.</p></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="sql-browsing"></a>Browsing</h3></div></div></div><p>You·can·browse·your·database·using·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">SQL·Schema·Browser</span></span> |
1081 | tool·view·on·the·left.··The·information·displayed·varies·depending·on·which | 1081 | tool·view·on·the·left.··The·information·displayed·varies·depending·on·which |
1082 | database·driver·you·are·using.</p><p>To·refresh·this·list,·right-click·anywhere·in·the·tool·view·and·select | 1082 | database·driver·you·are·using.</p><p>To·refresh·this·list,·right-click·anywhere·in·the·tool·view·and·select |
1083 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Refresh</span></span>.··To·generate·a·query·on·any·entry·in·the·list, | 1083 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Refresh</span></span>.··To·generate·a·query·on·any·entry·in·the·list, |
Offset 1129, 15 lines modified | Offset 1129, 15 lines modified |
1129 | of·a·debugging·session.</p></div><hr></div></div></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">IO</span></span></span></dt><dd><p>Contains·an·area·that·displays·output·from·the·running·program·and·a | 1129 | of·a·debugging·session.</p></div><hr></div></div></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">IO</span></span></span></dt><dd><p>Contains·an·area·that·displays·output·from·the·running·program·and·a |
1130 | command·line·where·you·may·provide·input·to·it.</p><div·class="screenshot"><div·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="mediaobject"><hr><img·src="gdb-io.png"·alt="The·IO·tab."><div·class="caption"><p>The·<span·class="guiitem"><span·class="guilabel">IO</span></span>·tab·displaying·output·from·a·simple | 1130 | command·line·where·you·may·provide·input·to·it.</p><div·class="screenshot"><div·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="mediaobject"><hr><img·src="gdb-io.png"·alt="The·IO·tab."><div·class="caption"><p>The·<span·class="guiitem"><span·class="guilabel">IO</span></span>·tab·displaying·output·from·a·simple |
1131 | test·program.</p></div><hr></div></div></dd></dl></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="gdb-other"></a>Call·Stack·and·Locals</h3></div></div></div><p>The·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Call·Stack</span></span>·tool·view·contains·a·list·of·the·formatted | 1131 | test·program.</p></div><hr></div></div></dd></dl></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="gdb-other"></a>Call·Stack·and·Locals</h3></div></div></div><p>The·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Call·Stack</span></span>·tool·view·contains·a·list·of·the·formatted |
1132 | backtrace·returned·from·<acronym·class="acronym">GDB</acronym>.</p><div·class="screenshot"><div·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="mediaobject"><hr><img·src="gdb-call-stack.png"·alt="The·Call·Stack·tool·view."><div·class="caption"><p>The·<acronym·class="acronym">GDB</acronym>·Plugin's·<span·class="guiitem"><span·class="guilabel">Call·Stack</span></span>·tool·view. | 1132 | backtrace·returned·from·<acronym·class="acronym">GDB</acronym>.</p><div·class="screenshot"><div·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="mediaobject"><hr><img·src="gdb-call-stack.png"·alt="The·Call·Stack·tool·view."><div·class="caption"><p>The·<acronym·class="acronym">GDB</acronym>·Plugin's·<span·class="guiitem"><span·class="guilabel">Call·Stack</span></span>·tool·view. |
1133 | </p></div><hr></div></div><p>The·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Locals</span></span>·tool·view·contains·a·list·of·all·currently | 1133 | </p></div><hr></div></div><p>The·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Locals</span></span>·tool·view·contains·a·list·of·all·currently |
1134 | loaded·variables·from·the·program·and·their·corresponding·values.</p><div·class="screenshot"><div·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="mediaobject"><hr><img·src="gdb-locals.png"·alt="The·Locals·tool·view."><div·class="caption"><p>The·<acronym·class="acronym">GDB</acronym>·Plugin's·<span·class="guiitem"><span·class="guilabel">Locals</span></span>·tool·view. | 1134 | loaded·variables·from·the·program·and·their·corresponding·values.</p><div·class="screenshot"><div·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="mediaobject"><hr><img·src="gdb-locals.png"·alt="The·Locals·tool·view."><div·class="caption"><p>The·<acronym·class="acronym">GDB</acronym>·Plugin's·<span·class="guiitem"><span·class="guilabel">Locals</span></span>·tool·view. |
1135 | </p></div><hr></div></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="gdb-ack"></a>Thanks·and·Acknowledgments</h3></div></div></div><p>Special·thanks·to·Google·Code-In·2011·participant·Martin·Gergov·for | 1135 | </p></div><hr></div></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="gdb-ack"></a>Thanks·and·Acknowledgments</h3></div></div></div><p>Special·thanks·to·Google·Code-In·2011·participant·Martin·Gergov·for |
1136 | writing·much·of·this·section.</p></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="kate-application-plugin-sql.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="kate-application-plugin-konsole.html">Next</a></td></tr><tr><td·class="prevCell">SQL·Plugin </td><td·class="upCell">Working·with·Plugins</td><td·class="nextCell"> Terminal·Tool·View·Plugin</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME><FILENAME·filename="kate-application-plugin-konsole.html"><html><head><title>Terminal·Tool·View·Plugin</title><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-default.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde·✂ | 1136 | writing·much·of·this·section.</p></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="kate-application-plugin-sql.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="kate-application-plugin-konsole.html">Next</a></td></tr><tr><td·class="prevCell">SQL·Plugin </td><td·class="upCell">Working·with·Plugins</td><td·class="nextCell"> Terminal·Tool·View·Plugin</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME><FILENAME·filename="kate-application-plugin-konsole.html"><html><head><title>Terminal·Tool·View·Plugin</title><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-default.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde·✂ |
1137 | The·built·in·Terminal·Emulator·is·a·copy·of·the·<acronym·class="acronym">KDE</acronym>·<span·class="application">Konsole</span> | 1137 | The·built·in·Terminal·Emulator·is·a·copy·of·the·<acronym·class="acronym">KDE</acronym>·<span·class="application">Konsole</span> |
1138 | terminal·application,·for·your·convenience.·It·is·available·from·the | 1138 | terminal·application,·for·your·convenience.·It·is·available·from·the |
1139 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">View</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guisubmenu">Tool·Views</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Show·Terminal</span></span>·menu·item·and·will·get·the·focus | 1139 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">View</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guisubmenu">Tool·Views</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Show·Terminal</span></span>·menu·item·and·will·get·the·focus |
1140 | whenever·displayed.·Additionally,·if·the·<a·class="link"·href="kate-application-plugin-konsole.html#konsole-config"·title="Configuration">Automatically·synchronize | 1140 | whenever·displayed.·Additionally,·if·the·<a·class="link"·href="kate-application-plugin-konsole.html#konsole-config"·title="Configuration">Automatically·synchronize |
1141 | the·terminal·with·the·current·document·when·possible</a>·option·is·enabled,·it·will | 1141 | the·terminal·with·the·current·document·when·possible</a>·option·is·enabled,·it·will |
1142 | change·to·the·directory·of·the·current·document·if | 1142 | change·to·the·directory·of·the·current·document·if |
1143 | possible·when·it·is·displayed,·or·when·the·current·document | 1143 | possible·when·it·is·displayed,·or·when·the·current·document |
Offset 1177, 19 lines modified | Offset 1177, 19 lines modified |
1177 | is·not·possible.·</p><p>Some·formats·define·single·line·comment·markers,·some·multiline | 1177 | is·not·possible.·</p><p>Some·formats·define·single·line·comment·markers,·some·multiline |
1178 | markers·and·some·both.··If·multiline·markers·are·not·available, | 1178 | markers·and·some·both.··If·multiline·markers·are·not·available, |
1179 | commenting·out·a·selection·that·does·not·fully·include·its·last·line | 1179 | commenting·out·a·selection·that·does·not·fully·include·its·last·line |
1180 | is·not·possible.</p><p>If·a·single·line·marker·is·available,·commenting·single·lines·is | 1180 | is·not·possible.</p><p>If·a·single·line·marker·is·available,·commenting·single·lines·is |
1181 | preferred·where·applicable,·as·this·helps·to·avoid·problems·with | 1181 | preferred·where·applicable,·as·this·helps·to·avoid·problems·with |
1182 | nested·comments.</p><p>When·removing·comment·markers,·no·uncommented·text·should·be | 1182 | nested·comments.</p><p>When·removing·comment·markers,·no·uncommented·text·should·be |
1183 | selected.·When·removing·multiline·comment·markers·from·a·selection, | 1183 | selected.·When·removing·multiline·comment·markers·from·a·selection, |
1184 | any·whitespace·outside·the·comment·markers·is·ignored.</p><p><a·class="indexterm"·name="idp151366200"></a> | 1184 | any·whitespace·outside·the·comment·markers·is·ignored.</p><p><a·class="indexterm"·name="idp151304760"></a> |
1185 | To·place·comment·markers,·use·the | 1185 | To·place·comment·markers,·use·the |
1186 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Tools</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Comment</span></span> | 1186 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Tools</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Comment</span></span> |
1187 | menu·item·or·the·related·keyboard·shortcut·sequence,·the·default·is | 1187 | menu·item·or·the·related·keyboard·shortcut·sequence,·the·default·is |
1188 | <span·class="keycap"><strong>Ctrl</strong></span>+<span·class="keycap"><strong>D</strong></span>.</p><p><a·class="indexterm"·name="idp151368632"></a> | 1188 | <span·class="keycap"><strong>Ctrl</strong></span>+<span·class="keycap"><strong>D</strong></span>.</p><p><a·class="indexterm"·name="idp151307192"></a> |
1189 | To·remove·comment·markers,·use·the | 1189 | To·remove·comment·markers,·use·the |
1190 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Tools</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Uncomment</span></span> | 1190 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Tools</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Uncomment</span></span> |
1191 | menu·item·or·the·related·keyboard·shortcut,·the·default·is·<span·class="keycap"><strong>Ctrl</strong></span>+<span·class="keycap"><strong>Shift</strong></span>+<span·class="keycap"><strong>D</strong></span>.</p></div><FILENAME·filename="advanced-editing-tools-commandline.html"><html><head><title>The·Editor·Component·Command·Line</title><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-default.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-docs.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-localised.css"><meta·name="generator"·content="DocBook·XSL·Stylesheets·V1.76.1"><meta·name="keywords"·content="KDE,·kdebase,·Kate,·text,·editor,·programmer,·programming,·projects,·MDI,·Multi,·Document,·Interface,·terminal,·console"><link·rel="home"·href="index.html"·title="The·Kate·Handbook"><link·rel="up"·href="advanced-editing-tools.html"·title="Chapter 5. Advanced·Editing·Tools"><link·rel="prev"·href="advanced-editing-tools.html"·title="Chapter 5. Advanced·Editing·Tools·✂ | 1191 | menu·item·or·the·related·keyboard·shortcut,·the·default·is·<span·class="keycap"><strong>Ctrl</strong></span>+<span·class="keycap"><strong>Shift</strong></span>+<span·class="keycap"><strong>D</strong></span>.</p></div><FILENAME·filename="advanced-editing-tools-commandline.html"><html><head><title>The·Editor·Component·Command·Line</title><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-default.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-docs.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-localised.css"><meta·name="generator"·content="DocBook·XSL·Stylesheets·V1.76.1"><meta·name="keywords"·content="KDE,·kdebase,·Kate,·text,·editor,·programmer,·programming,·projects,·MDI,·Multi,·Document,·Interface,·terminal,·console"><link·rel="home"·href="index.html"·title="The·Kate·Handbook"><link·rel="up"·href="advanced-editing-tools.html"·title="Chapter 5. Advanced·Editing·Tools"><link·rel="prev"·href="advanced-editing-tools.html"·title="Chapter 5. Advanced·Editing·Tools·✂ |
1192 | perform·various·actions·from·a·minimal·GUI.·The·command·line·is·a·text·entry | 1192 | perform·various·actions·from·a·minimal·GUI.·The·command·line·is·a·text·entry |
1193 | at·the·bottom·of·the·editor·area;·to·show·it·select | 1193 | at·the·bottom·of·the·editor·area;·to·show·it·select |
1194 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">View</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Switch·to·Command·Line</span></span> | 1194 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">View</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Switch·to·Command·Line</span></span> |
1195 | or·use·the·shortcut·(default·is | 1195 | or·use·the·shortcut·(default·is |
Offset 1272, 16 lines modified | Offset 1272, 16 lines modified |
1272 | </p><div·class="informaltable"><table·border="1"><colgroup><col><col></colgroup><tbody><tr><td><code·class="literal">d</code></td><td>The·day·as·number·without·a·leading·zero·(1-31).</td></tr><tr><td><code·class="literal">dd</code></td><td>The·day·as·number·with·a·leading·zero·(01-31).</td></tr><tr><td><code·class="literal">ddd</code></td><td>The·abbreviated·localized·day·name·(e.g.·'Mon'..'Sun').</td></tr><tr><td><code·class="literal">dddd</code></td><td>The·long·localized·day·name·(e.g.·'Monday'..'Sunday').</td></tr><tr><td><code·class="literal">M</code></td><td>The·month·as·number·without·a·leading·zero·(1-12).</td></tr><tr><td><code·class="literal">MM</code></td><td>The·month·as·number·with·a·leading·zero·(01-12).</td></tr><tr><td><code·class="literal">MMMM</code></td><td>The·long·localized·month·name·(e.g.·'January'..'December').</td></tr><tr><td><code·class="literal">MMM</code></td><td>The·abbreviated·localized·month·name·(e.g.·'Jan'..'Dec').</td></tr><tr><td><code·class="literal">yy</code></td><td>The··✂ | 1272 | </p><div·class="informaltable"><table·border="1"><colgroup><col><col></colgroup><tbody><tr><td><code·class="literal">d</code></td><td>The·day·as·number·without·a·leading·zero·(1-31).</td></tr><tr><td><code·class="literal">dd</code></td><td>The·day·as·number·with·a·leading·zero·(01-31).</td></tr><tr><td><code·class="literal">ddd</code></td><td>The·abbreviated·localized·day·name·(e.g.·'Mon'..'Sun').</td></tr><tr><td><code·class="literal">dddd</code></td><td>The·long·localized·day·name·(e.g.·'Monday'..'Sunday').</td></tr><tr><td><code·class="literal">M</code></td><td>The·month·as·number·without·a·leading·zero·(1-12).</td></tr><tr><td><code·class="literal">MM</code></td><td>The·month·as·number·with·a·leading·zero·(01-12).</td></tr><tr><td><code·class="literal">MMMM</code></td><td>The·long·localized·month·name·(e.g.·'January'..'December').</td></tr><tr><td><code·class="literal">MMM</code></td><td>The·abbreviated·localized·month·name·(e.g.·'Jan'..'Dec').</td></tr><tr><td><code·class="literal">yy</code></td><td>The··✂ |
1273 | (00-99).</td></tr><tr><td><code·class="literal">yyyy</code></td><td>The·year·as·four·digit·number·(1752-8000).</td></tr><tr><td><code·class="literal">h</code></td><td>The·hour·without·a·leading·zero·(0..23·or·1..12·if·AM/PM·display).</td></tr><tr><td><code·class="literal">hh</code></td><td>The·hour·with·a·leading·zero·(00..23·or·01..12·if·AM/PM·display).</td></tr><tr><td><code·class="literal">m</code></td><td>The·minute·without·a·leading·zero·(0..59).</td></tr><tr><td><code·class="literal">mm</code></td><td>The·minute·with·a·leading·zero·(00..59).</td></tr><tr><td><code·class="literal">s</code></td><td>The·second·without·a·leading·zero·(0..59).</td></tr><tr><td><code·class="literal">ss</code></td><td>The·second·with·a·leading·zero·(00..59).</td></tr><tr><td><code·class="literal">z</code></td><td>The·milliseconds·without·leading·zeroes·(0..999).</td></tr><tr><td><code·class="literal">zzz</code></td><td>The·milliseconds·with·leading·zeroes·(000..999).</td></tr><tr><td><code·class="literal">AP</code></td><td>Use·✂ | 1273 | (00-99).</td></tr><tr><td><code·class="literal">yyyy</code></td><td>The·year·as·four·digit·number·(1752-8000).</td></tr><tr><td><code·class="literal">h</code></td><td>The·hour·without·a·leading·zero·(0..23·or·1..12·if·AM/PM·display).</td></tr><tr><td><code·class="literal">hh</code></td><td>The·hour·with·a·leading·zero·(00..23·or·01..12·if·AM/PM·display).</td></tr><tr><td><code·class="literal">m</code></td><td>The·minute·without·a·leading·zero·(0..59).</td></tr><tr><td><code·class="literal">mm</code></td><td>The·minute·with·a·leading·zero·(00..59).</td></tr><tr><td><code·class="literal">s</code></td><td>The·second·without·a·leading·zero·(0..59).</td></tr><tr><td><code·class="literal">ss</code></td><td>The·second·with·a·leading·zero·(00..59).</td></tr><tr><td><code·class="literal">z</code></td><td>The·milliseconds·without·leading·zeroes·(0..999).</td></tr><tr><td><code·class="literal">zzz</code></td><td>The·milliseconds·with·leading·zeroes·(000..999).</td></tr><tr><td><code·class="literal">AP</code></td><td>Use·✂ |
| |
1274 | </p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>char</strong></span></span>·{STRING·identifier}</p></div></span></dt><dd><p>This·command·allows·you·to·insert·literal·characters·by·their | 1274 | </p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>char</strong></span></span>·{STRING·identifier}</p></div></span></dt><dd><p>This·command·allows·you·to·insert·literal·characters·by·their |
1275 | numerical·identifier,·in·decimal,·octal·or·hexadecimal·form. | 1275 | numerical·identifier,·in·decimal,·octal·or·hexadecimal·form. |
1276 | To·use·it·launch·the·Editing·Command·dialog·and·type·<strong·class="userinput"><code>char: | 1276 | To·use·it·launch·the·Editing·Command·dialog·and·type·<strong·class="userinput"><code>char: |
1277 | [number]</code></strong>·in·the·entry·box,·then·hit | 1277 | [number]</code></strong>·in·the·entry·box,·then·hit |
1278 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">OK</span></span>.</p><div·class="example"><a·name="idp151492024"></a><p·class="title"><b>Example 5.1. <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command">char</span></span>·examples</b></p><div·class="example-contents"><p>Input:·<strong·class="userinput"><code>char:234</code></strong></p><p>Output:·<code·class="computeroutput">ê</code></p><p>Input:·<strong·class="userinput"><code>char:0x1234</code></strong></p><p>Output:·<code·class="computeroutput">ሴ</code></p></div></div><br·class="example-break"></dd><dt><span·class="term"> | 1278 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">OK</span></span>.</p><div·class="example"><a·name="idp151434680"></a><p·class="title"><b>Example 5.1. <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command">char</span></span>·examples</b></p><div·class="example-contents"><p>Input:·<strong·class="userinput"><code>char:234</code></strong></p><p>Output:·<code·class="computeroutput">ê</code></p><p>Input:·<strong·class="userinput"><code>char:0x1234</code></strong></p><p>Output:·<code·class="computeroutput">ሴ</code></p></div></div><br·class="example-break"></dd><dt><span·class="term"> |
1279 | <a·class="indexterm"·name="idp151496376"></a> | 1279 | <a·class="indexterm"·name="idp151439032"></a> |
1280 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>s///[ig]</strong></span></span>·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>%s///[ig]</strong></span></span></span></dt><dd><p>This·command·does·a·sed-like·search/replace·operation·on·the | 1280 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>s///[ig]</strong></span></span>·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>%s///[ig]</strong></span></span></span></dt><dd><p>This·command·does·a·sed-like·search/replace·operation·on·the |
1281 | current·line,·or·on·the·whole·file·(<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>%s///</strong></span></span>).</p><p>In·short,·the·text·is·searched·for·text·matching·the | 1281 | current·line,·or·on·the·whole·file·(<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>%s///</strong></span></span>).</p><p>In·short,·the·text·is·searched·for·text·matching·the |
1282 | <span·class="emphasis"><em>search·pattern</em></span>,·the·regular·expression·between | 1282 | <span·class="emphasis"><em>search·pattern</em></span>,·the·regular·expression·between |
1283 | the·first·and·the·second·slash,·and·when·a·match·is·found,·the | 1283 | the·first·and·the·second·slash,·and·when·a·match·is·found,·the |
1284 | matching·part·of·the·text·is·replaced·with·the·expression·between·the | 1284 | matching·part·of·the·text·is·replaced·with·the·expression·between·the |
1285 | second·and·last·slash.·Parentheses·in·the·search·pattern | 1285 | second·and·last·slash.·Parentheses·in·the·search·pattern |
1286 | create·<span·class="emphasis"><em>back·references</em></span>,·that·is·the·command | 1286 | create·<span·class="emphasis"><em>back·references</em></span>,·that·is·the·command |
Offset 1289, 28 lines modified | Offset 1289, 28 lines modified |
1289 | strings·can·be·reused·in·the·replace·pattern,·referred·to·as | 1289 | strings·can·be·reused·in·the·replace·pattern,·referred·to·as |
1290 | <strong·class="userinput"><code>\1</code></strong>·for·the·first·set·of·parentheses, | 1290 | <strong·class="userinput"><code>\1</code></strong>·for·the·first·set·of·parentheses, |
1291 | <strong·class="userinput"><code>\2</code></strong>·for·the·second·and·so·on.</p><p>To·search·for·a·literal·<code·class="literal">(</code>·or | 1291 | <strong·class="userinput"><code>\2</code></strong>·for·the·second·and·so·on.</p><p>To·search·for·a·literal·<code·class="literal">(</code>·or |
1292 | <code·class="literal">)</code>,·you·need·to·<span·class="emphasis"><em>escape</em></span>·it·using | 1292 | <code·class="literal">)</code>,·you·need·to·<span·class="emphasis"><em>escape</em></span>·it·using |
1293 | a·backslash·character:·<strong·class="userinput"><code>\(\)</code></strong></p><p>If·you·put·an·<strong·class="userinput"><code>i</code></strong>·at·the·end·of·the | 1293 | a·backslash·character:·<strong·class="userinput"><code>\(\)</code></strong></p><p>If·you·put·an·<strong·class="userinput"><code>i</code></strong>·at·the·end·of·the |
1294 | expression,·the·matching·will·be·case·insensitive.·If·you·put·a | 1294 | expression,·the·matching·will·be·case·insensitive.·If·you·put·a |
1295 | <strong·class="userinput"><code>g</code></strong>·at·the·end,·all·occurrences·of·the·pattern·will·be | 1295 | <strong·class="userinput"><code>g</code></strong>·at·the·end,·all·occurrences·of·the·pattern·will·be |
1296 | replaced,·otherwise·only·the·first·occurrence·is·replaced.</p><div·class="example"><a·name="idp151503928"></a><p·class="title"><b>Example 5.2. Replacing·text·in·the·current·line</b></p><div·class="example-contents"><p>Your·friendly·compiler·just·stopped,·telling·you·that·the·class | 1296 | replaced,·otherwise·only·the·first·occurrence·is·replaced.</p><div·class="example"><a·name="idp151446584"></a><p·class="title"><b>Example 5.2. Replacing·text·in·the·current·line</b></p><div·class="example-contents"><p>Your·friendly·compiler·just·stopped,·telling·you·that·the·class |
1297 | <code·class="classname">myClass</code>·mentioned·in·line·3902·in·your·source·file | 1297 | <code·class="classname">myClass</code>·mentioned·in·line·3902·in·your·source·file |
1298 | is·not·defined.</p><p>"Buckle!"·you·think,·it·is·of·course | 1298 | is·not·defined.</p><p>"Buckle!"·you·think,·it·is·of·course |
1299 | <code·class="classname">MyClass</code>.·You·go·to·line·3902,·and·instead·of·trying | 1299 | <code·class="classname">MyClass</code>.·You·go·to·line·3902,·and·instead·of·trying |
1300 | to·find·the·word·in·the·text,·you·launch·the·Editing·Command·Dialog, | 1300 | to·find·the·word·in·the·text,·you·launch·the·Editing·Command·Dialog, |
1301 | enter·<strong·class="userinput"><code>s/myclass/MyClass/i</code></strong>,·hit·the | 1301 | enter·<strong·class="userinput"><code>s/myclass/MyClass/i</code></strong>,·hit·the |
1302 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">OK</span></span>·button,·save·the·file·and·compile·– | 1302 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guibutton">OK</span></span>·button,·save·the·file·and·compile·– |
1303 | successfully·without·the·error.</p></div></div><br·class="example-break"><div·class="example"><a·name="idp151507256"></a><p·class="title"><b>Example 5.3. Replacing·text·in·the·whole·file</b></p><div·class="example-contents"><p>Imagine·that·you·have·a·file,·in·which·you·mention·a·<span·class="quote">“<span·class="quote">Miss | 1303 | successfully·without·the·error.</p></div></div><br·class="example-break"><div·class="example"><a·name="idp151449912"></a><p·class="title"><b>Example 5.3. Replacing·text·in·the·whole·file</b></p><div·class="example-contents"><p>Imagine·that·you·have·a·file,·in·which·you·mention·a·<span·class="quote">“<span·class="quote">Miss |
1304 | Jensen</span>”</span>·several·times,·when·someone·comes·in·and·tells·you·that | 1304 | Jensen</span>”</span>·several·times,·when·someone·comes·in·and·tells·you·that |
1305 | she·just·got·married·to·<span·class="quote">“<span·class="quote">Mr·Jones</span>”</span>.·You·want,·of·course, | 1305 | she·just·got·married·to·<span·class="quote">“<span·class="quote">Mr·Jones</span>”</span>.·You·want,·of·course, |
1306 | to·replace·each·and·every·occurrence·of·<span·class="quote">“<span·class="quote">Miss·Jensen</span>”</span> | 1306 | to·replace·each·and·every·occurrence·of·<span·class="quote">“<span·class="quote">Miss·Jensen</span>”</span> |
1307 | with·<span·class="quote">“<span·class="quote">Ms·Jones</span>”</span>.</p><p>Enter·the·command·line·and·issue·the·command | 1307 | with·<span·class="quote">“<span·class="quote">Ms·Jones</span>”</span>.</p><p>Enter·the·command·line·and·issue·the·command |
1308 | <strong·class="userinput"><code>%s/Miss·Jensen/Ms·Jones/</code></strong>·and·hit·return,·you | 1308 | <strong·class="userinput"><code>%s/Miss·Jensen/Ms·Jones/</code></strong>·and·hit·return,·you |
1309 | are·done.</p></div></div><br·class="example-break"><div·class="example"><a·name="idp142487224"></a><p·class="title"><b>Example 5.4. A·More·Advanced·Example</b></p><div·class="example-contents"><p>This·example·makes·use·of·<span·class="emphasis"><em>back·references</em></span> | 1309 | are·done.</p></div></div><br·class="example-break"><div·class="example"><a·name="idp151453368"></a><p·class="title"><b>Example 5.4. A·More·Advanced·Example</b></p><div·class="example-contents"><p>This·example·makes·use·of·<span·class="emphasis"><em>back·references</em></span> |
1310 | as·well·as·a·<span·class="emphasis"><em>character·class</em></span>·(if·you·do·not·know·what | 1310 | as·well·as·a·<span·class="emphasis"><em>character·class</em></span>·(if·you·do·not·know·what |
1311 | that·is,·please·refer·to·the·related·documentation·mentioned | 1311 | that·is,·please·refer·to·the·related·documentation·mentioned |
1312 | below).</p><p>Suppose·you·have·the·following·line: | 1312 | below).</p><p>Suppose·you·have·the·following·line: |
| |
1313 | </p><pre·class="programlisting">void·MyClass::DoStringOps(·String······&foo,·String·&bar,·String·*p,·int··&a,·int·&b·)</pre><p> | 1313 | </p><pre·class="programlisting">void·MyClass::DoStringOps(·String······&foo,·String·&bar,·String·*p,·int··&a,·int·&b·)</pre><p> |
1314 | </p><p>Now·you·realize·that·this·is·not·nice·code,·and·decide·that·you | 1314 | </p><p>Now·you·realize·that·this·is·not·nice·code,·and·decide·that·you |
1315 | want·to·use·the·<code·class="constant">const</code>·keyword·for·all | 1315 | want·to·use·the·<code·class="constant">const</code>·keyword·for·all |
Offset 1330, 28 lines modified | Offset 1330, 28 lines modified |
1330 | the·replace·operation.·Then·we·replaced·the·matching·part·of·our·line | 1330 | the·replace·operation.·Then·we·replaced·the·matching·part·of·our·line |
1331 | with·one·whitespace·followed·by·<span·class="quote">“<span·class="quote">const</span>”</span>·followed·by·one | 1331 | with·one·whitespace·followed·by·<span·class="quote">“<span·class="quote">const</span>”</span>·followed·by·one |
1332 | whitespace·followed·by·our·saved·alphabetical·chunk | 1332 | whitespace·followed·by·our·saved·alphabetical·chunk |
1333 | (<code·class="literal">\1</code>)·followed·by·one·whitespace·followed·by·our | 1333 | (<code·class="literal">\1</code>)·followed·by·one·whitespace·followed·by·our |
1334 | saved·ampersand·(<code·class="literal">\2</code>)</p><p>Now·in·some·cases·the·alphabetical·chunk·was | 1334 | saved·ampersand·(<code·class="literal">\2</code>)</p><p>Now·in·some·cases·the·alphabetical·chunk·was |
1335 | <span·class="quote">“<span·class="quote">String</span>”</span>,·in·some·<span·class="quote">“<span·class="quote">int</span>”</span>,·so·using·the | 1335 | <span·class="quote">“<span·class="quote">String</span>”</span>,·in·some·<span·class="quote">“<span·class="quote">int</span>”</span>,·so·using·the |
1336 | character·class·<code·class="literal">\w</code>·and·the·<code·class="literal">+</code> | 1336 | character·class·<code·class="literal">\w</code>·and·the·<code·class="literal">+</code> |
1337 | quantifier·proved·a·valuable·asset.</p></div></div><br·class="example-break"></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>sort</strong></span></span></p></div></span></dt><dd><p>Sorts·the·selected·text·or·entire·document.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>natsort</strong></span></span></p></div></span></dt><dd><p>Sort·the·selected·lines·or·entire·document·naturally.</p><div·class="example"><a·name="idp151520824"></a><p·class="title"><b>Example 5.5. <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command">sort</span></span>·vs.·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command">natsort</span></span></b></p><div·class="example-contents"><p><strong·class="userinput"><code><span·xmlns:doc="h·✂ | 1337 | quantifier·proved·a·valuable·asset.</p></div></div><br·class="example-break"></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>sort</strong></span></span></p></div></span></dt><dd><p>Sorts·the·selected·text·or·entire·document.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>natsort</strong></span></span></p></div></span></dt><dd><p>Sort·the·selected·lines·or·entire·document·naturally.</p><div·class="example"><a·name="idp151471672"></a><p·class="title"><b>Example 5.5. <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command">sort</span></span>·vs.·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command">natsort</span></span></b></p><div·class="example-contents"><p><strong·class="userinput"><code><span·xmlns:doc="h·✂ |
1338 | ····························<code·class="computeroutput">a1,·a10,·a2</code></p><p><strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>natsort</strong></span></span>(a10,·a1,·a2)</code></strong>·results·in | 1338 | ····························<code·class="computeroutput">a1,·a10,·a2</code></p><p><strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>natsort</strong></span></span>(a10,·a1,·a2)</code></strong>·results·in |
1339 | ····························<code·class="computeroutput">a1,·a2,·a10</code></p></div></div><br·class="example-break"></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>moveLinesDown</strong></span></span></p></div></span></dt><dd><p>Move·selected·lines·down.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>moveLinesUp</strong></span></span></p></div></span></dt><dd><p>Move·selected·lines·up.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>uniq</strong></span></span></p></div></span></dt><dd><p>Remove·duplicated·lines·from·the·selected·text·or·the·whole | 1339 | ····························<code·class="computeroutput">a1,·a2,·a10</code></p></div></div><br·class="example-break"></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>moveLinesDown</strong></span></span></p></div></span></dt><dd><p>Move·selected·lines·down.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>moveLinesUp</strong></span></span></p></div></span></dt><dd><p>Move·selected·lines·up.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>uniq</strong></span></span></p></div></span></dt><dd><p>Remove·duplicated·lines·from·the·selected·text·or·the·whole |
1340 | document.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>rtrim</strong></span></span></p></div></span></dt><dd><p>Remove·trailing·space·from·the·selected·text·or·the·whole | 1340 | document.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>rtrim</strong></span></span></p></div></span></dt><dd><p>Remove·trailing·space·from·the·selected·text·or·the·whole |
1341 | document.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>ltrim</strong></span></span></p></div></span></dt><dd><p>Remove·leading·space·from·the·selected·text·or·the·whole | 1341 | document.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>ltrim</strong></span></span></p></div></span></dt><dd><p>Remove·leading·space·from·the·selected·text·or·the·whole |
1342 | document.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>join</strong></span></span>·[STRING·separator]</p></div></span></dt><dd><p>Join·selected·lines·or·whole·document.··Optionally·takes·a·parameter | 1342 | document.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>join</strong></span></span>·[STRING·separator]</p></div></span></dt><dd><p>Join·selected·lines·or·whole·document.··Optionally·takes·a·parameter |
1343 | defining·a·separator,·for·example:··<strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>join</strong></span></span>·',·'</code></strong> | 1343 | defining·a·separator,·for·example:··<strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>join</strong></span></span>·',·'</code></strong> |
1344 | </p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>rmblank</strong></span></span></p></div></span></dt><dd><p>Remove·all·blank·spaces·from·the·selected·text·or·the·whole | 1344 | </p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>rmblank</strong></span></span></p></div></span></dt><dd><p>Remove·all·blank·spaces·from·the·selected·text·or·the·whole |
1345 | document.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>unwrap</strong></span></span></p></div></span></dt><dd><p>Unwrap·the·selected·text·or·the·whole·document.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>each</strong></span></span>·{STRING·script}</p></div></span></dt><dd><p>Given·a·JavaScript·function·as·an·argument,·call·that·for·the·list·of | 1345 | document.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>unwrap</strong></span></span></p></div></span></dt><dd><p>Unwrap·the·selected·text·or·the·whole·document.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>each</strong></span></span>·{STRING·script}</p></div></span></dt><dd><p>Given·a·JavaScript·function·as·an·argument,·call·that·for·the·list·of |
1346 | selected·lines·and·replace·them·with·the·return·value·of·that·callback.</p><div·class="example"><a·name="idp151539640"></a><p·class="title"><b>Example 5.6. Join·selected·lines</b></p><div·class="example-contents"><p><strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>each</strong></span></span>·'function(lines){return·lines.join(",·")}' | 1346 | selected·lines·and·replace·them·with·the·return·value·of·that·callback.</p><div·class="example"><a·name="idp143105976"></a><p·class="title"><b>Example 5.6. Join·selected·lines</b></p><div·class="example-contents"><p><strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>each</strong></span></span>·'function(lines){return·lines.join(",·")}' |
1347 | </code></strong></p><p>Or,·more·briefly:</p><p><strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>each</strong></span></span>·'lines.join(",·")'</code></strong></p></div></div><br·class="example-break"></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>filter</strong></span></span>·{STRING·script}</p></div></span></dt><dd><p>Given·a·JavaScript·function·as·an·argument,·call·that·for·the·list·of | 1347 | </code></strong></p><p>Or,·more·briefly:</p><p><strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>each</strong></span></span>·'lines.join(",·")'</code></strong></p></div></div><br·class="example-break"></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>filter</strong></span></span>·{STRING·script}</p></div></span></dt><dd><p>Given·a·JavaScript·function·as·an·argument,·call·that·for·the·list·of |
1348 | selected·lines·and·remove·those·where·the·callback·returns·false.</p><div·class="example"><a·name="idp151544376"></a><p·class="title"><b>Example 5.7. Remove·blank·lines</b></p><div·class="example-contents"><p><strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>filter</strong></span></span>·'function(1){return·1.length·>·0;}' | 1348 | selected·lines·and·remove·those·where·the·callback·returns·false.</p><div·class="example"><a·name="idp151495224"></a><p·class="title"><b>Example 5.7. Remove·blank·lines</b></p><div·class="example-contents"><p><strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>filter</strong></span></span>·'function(1){return·1.length·>·0;}' |
1349 | </code></strong></p><p>Or,·more·briefly:</p><p><strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>filter</strong></span></span>·'line.length·>·0'</code></strong></p></div></div><br·class="example-break"></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>map</strong></span></span>·{STRING·script}</p></div></span></dt><dd><p>Given·a·JavaScript·function·as·an·argument,·call·that·for·the·list·of | 1349 | </code></strong></p><p>Or,·more·briefly:</p><p><strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>filter</strong></span></span>·'line.length·>·0'</code></strong></p></div></div><br·class="example-break"></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>map</strong></span></span>·{STRING·script}</p></div></span></dt><dd><p>Given·a·JavaScript·function·as·an·argument,·call·that·for·the·list·of |
1350 | selected·lines·and·replace·the·line·with·the·value·of·the·callback.</p><div·class="example"><a·name="idp151549112"></a><p·class="title"><b>Example 5.8. Remove·blank·lines</b></p><div·class="example-contents"><p><strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>map</strong></span></span>·'function(line){return | 1350 | selected·lines·and·replace·the·line·with·the·value·of·the·callback.</p><div·class="example"><a·name="idp151499960"></a><p·class="title"><b>Example 5.8. Remove·blank·lines</b></p><div·class="example-contents"><p><strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>map</strong></span></span>·'function(line){return |
1351 | line.replace(/^s+/,"");}' | 1351 | line.replace(/^s+/,"");}' |
1352 | </code></strong></p><p>Or,·more·briefly:</p><p><strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>map</strong></span></span>·'line.replace(/^s+/,"")'</code></strong></p></div></div><br·class="example-break"></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>duplicateLinesUp</strong></span></span></p></div></span></dt><dd><p>Duplicate·the·selected·lines·above·the·current·selection.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>duplicateLinesDown</strong></span></span></p></div></span></dt><dd><p>Duplicate·the·selected·lines·below·the·current·selection.</p></dd></dl></div></div><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="advanced-editing-tools-commandline-commands-navigat·✂ | 1352 | </code></strong></p><p>Or,·more·briefly:</p><p><strong·class="userinput"><code><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>map</strong></span></span>·'line.replace(/^s+/,"")'</code></strong></p></div></div><br·class="example-break"></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>duplicateLinesUp</strong></span></span></p></div></span></dt><dd><p>Duplicate·the·selected·lines·above·the·current·selection.</p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>duplicateLinesDown</strong></span></span></p></div></span></dt><dd><p>Duplicate·the·selected·lines·below·the·current·selection.</p></dd></dl></div></div><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="advanced-editing-tools-commandline-commands-navigat·✂ |
1353 | <strong·class="userinput"><code>pattern</code></strong>.·For·more·information,·see | 1353 | <strong·class="userinput"><code>pattern</code></strong>.·For·more·information,·see |
1354 | <a·class="xref"·href="regular-expressions.html"·title="Appendix B. Regular·Expressions">Appendix B,·<i>Regular·Expressions</i></a></p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>find</strong></span></span>·{STRING·pattern}</p></div></span></dt><dd><p>This·command·navigates·to·the·first·occurrence·of | 1354 | <a·class="xref"·href="regular-expressions.html"·title="Appendix B. Regular·Expressions">Appendix B,·<i>Regular·Expressions</i></a></p></dd><dt><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>find</strong></span></span>·{STRING·pattern}</p></div></span></dt><dd><p>This·command·navigates·to·the·first·occurrence·of |
1355 | <strong·class="userinput"><code>pattern</code></strong>·according·to·the·configuration.·Following | 1355 | <strong·class="userinput"><code>pattern</code></strong>·according·to·the·configuration.·Following |
1356 | occurrences·can·be·found·using | 1356 | occurrences·can·be·found·using |
1357 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Edit</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Find·Next</span></span> | 1357 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Edit</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Find·Next</span></span> |
Offset 2883, 15 lines modified | Offset 2883, 15 lines modified |
2883 | window·(if·one·exists·for·the·particular·item)·explaining·the·item's | 2883 | window·(if·one·exists·for·the·particular·item)·explaining·the·item's |
2884 | function.</p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Help</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Report·Bug...</span></span></span></dt><dd><p><span·class="action">Opens·the·Bug·report·dialog</span>·where·you·can | 2884 | function.</p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Help</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Report·Bug...</span></span></span></dt><dd><p><span·class="action">Opens·the·Bug·report·dialog</span>·where·you·can |
2885 | report·a·bug·or·request·a·<span·class="quote">“<span·class="quote">wishlist</span>”</span>·feature.</p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Help</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Switch·Application·Language...</span></span></span></dt><dd><p><span·class="action">Opens·a·dialog</span>·where·you·can | 2885 | report·a·bug·or·request·a·<span·class="quote">“<span·class="quote">wishlist</span>”</span>·feature.</p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Help</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">Switch·Application·Language...</span></span></span></dt><dd><p><span·class="action">Opens·a·dialog</span>·where·you·can |
2886 | edit·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Primary·language</span></span>·and·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Fallback·language</span></span> | 2886 | edit·the·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Primary·language</span></span>·and·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guilabel">Fallback·language</span></span> |
2887 | for·this·application.</p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Help</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">About·<span·class="application">Kate</span></span></span></span></dt><dd><p><span·class="action">This·will·display·version·and·author | 2887 | for·this·application.</p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Help</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">About·<span·class="application">Kate</span></span></span></span></dt><dd><p><span·class="action">This·will·display·version·and·author |
2888 | information.</span></p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Help</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">About·KDE</span></span></span></dt><dd><p><span·class="action">This·displays·the·KDE·version·and·other·basic | 2888 | information.</span></p></dd><dt><span·class="term"><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenu">Help</span></span>·→·<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="guiitem"><span·class="guimenuitem">About·KDE</span></span></span></dt><dd><p><span·class="action">This·displays·the·KDE·version·and·other·basic |
2889 | information.</span></p></dd></dl></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="settings-menu.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="configuring-kate.html">Next</a></td></tr><tr><td·class="prevCell">The·Settings·Menu </td><td·class="upCell">Menu·Entries</td><td·class="nextCell"> Configuring·<span·class="application">Kate</span></td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="vi-input-mode-chapter.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nex·✂ | 2889 | information.</span></p></dd></dl></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="settings-menu.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="configuring-kate.html">Next</a></td></tr><tr><td·class="prevCell">The·Settings·Menu </td><td·class="upCell">Menu·Entries</td><td·class="nextCell"> Configuring·<span·class="application">Kate</span></td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="vi-input-mode-chapter.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nex·✂ |
2890 | <a·class="indexterm"·name="idp154815416"></a> | 2890 | <a·class="indexterm"·name="idp154827704"></a> |
2891 | <a·name="find"></a> | 2891 | <a·name="find"></a> |
2892 | <a·name="find-again"></a> | 2892 | <a·name="find-again"></a> |
| |
2893 | <a·name="replace"></a> | 2893 | <a·name="replace"></a> |
| |
2894 | <a·name="undo"></a> | 2894 | <a·name="undo"></a> |
2895 | <a·name="redo"></a> | 2895 | <a·name="redo"></a> |
Offset 3313, 15 lines modified | Offset 3313, 15 lines modified |
3313 | width.·</p></dd><dt><a·name="variable-word-wrap-marker-color"></a><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>word-wrap-marker-color</strong></span></span>·[STRING]</p></div></span></dt><dd><p>Set·the·word·wrap·marker·color.·The·value·must·be·something | 3313 | width.·</p></dd><dt><a·name="variable-word-wrap-marker-color"></a><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>word-wrap-marker-color</strong></span></span>·[STRING]</p></div></span></dt><dd><p>Set·the·word·wrap·marker·color.·The·value·must·be·something |
3314 | that·can·be·evaluated·to·a·valid·color,·for·example·<strong·class="userinput"><code>#ff0000</code></strong>.</p></dd><dt><a·name="variable-word-wrap"></a><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>word-wrap</strong></span></span>·[BOOL]</p></div></span></dt><dd><p>Set·static·word·wrapping·on·or·off.</p></dd></dl></div></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="config-dialog-editor.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="credits.html">Next</a></td></tr><tr><td·class="prevCell">The·Editor·Component·Configuration </td><td·class="upCell">Configuring·<span·class="application">Kate</span></td><td·class="nextCell"> Credits·and·License</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·up·✂ | 3314 | that·can·be·evaluated·to·a·valid·color,·for·example·<strong·class="userinput"><code>#ff0000</code></strong>.</p></dd><dt><a·name="variable-word-wrap"></a><span·class="term"><div·class="cmdsynopsis"><p><span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>word-wrap</strong></span></span>·[BOOL]</p></div></span></dt><dd><p>Set·static·word·wrapping·on·or·off.</p></dd></dl></div></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="config-dialog-editor.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="credits.html">Next</a></td></tr><tr><td·class="prevCell">The·Editor·Component·Configuration </td><td·class="upCell">Configuring·<span·class="application">Kate</span></td><td·class="nextCell"> Credits·and·License</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·up·✂ |
3315 | <span·class="application">Kate</span>.·Program·copyright·2000,·2001,·2002·-·2005·by·the·<span·class="application">Kate</span>·developer·team. | 3315 | <span·class="application">Kate</span>.·Program·copyright·2000,·2001,·2002·-·2005·by·the·<span·class="application">Kate</span>·developer·team. |
3316 | </p><div·class="variablelist"><p·class="title"><b>The·<span·class="application">Kate</span>·team:</b></p><dl><dt><span·class="term"><span·class="firstname">Christoph</span>·<span·class="surname">Cullmann</span>·<code·class="email">(cullmann·AT·kde.org)</code></span></dt><dd><p>Project·Manager·&·Core·Developer</p></dd><dt><span·class="term"><span·class="firstname">Anders</span>·<span·class="surname">Lund</span>·<code·class="email">(anders·AT·alweb.dk)</code></span></dt><dd><p>Core·Developer,·Perl·syntax·highlighting, | 3316 | </p><div·class="variablelist"><p·class="title"><b>The·<span·class="application">Kate</span>·team:</b></p><dl><dt><span·class="term"><span·class="firstname">Christoph</span>·<span·class="surname">Cullmann</span>·<code·class="email">(cullmann·AT·kde.org)</code></span></dt><dd><p>Project·Manager·&·Core·Developer</p></dd><dt><span·class="term"><span·class="firstname">Anders</span>·<span·class="surname">Lund</span>·<code·class="email">(anders·AT·alweb.dk)</code></span></dt><dd><p>Core·Developer,·Perl·syntax·highlighting, |
3317 | documentation</p></dd><dt><span·class="term"><span·class="firstname">Joseph</span>·<span·class="surname">Wenninger</span>·<code·class="email">(kde·AT·jowenn.at)</code></span></dt><dd><p>Core·Developer,·syntax·highlighting</p></dd><dt><span·class="term">Michael·Bartl·<code·class="email">(michael.bartl1·AT·chello.at)</code></span></dt><dd><p>Core·Developer</p></dd><dt><span·class="term">Phlip·<code·class="email">(phlip_cpp·AT·my-deja.com)</code></span></dt><dd><p>The·project·compiler</p></dd><dt><span·class="term"><span·class="firstname">Waldo</span>·<span·class="surname">Bastian</span>·<code·class="email">(bastian·AT·kde.org)</code></span></dt><dd><p>The·cool·buffer·system</p></dd><dt><span·class="term">Matt·Newell·<code·class="email">(newellm·AT·proaxis.com)</code></span></dt><dd><p>Testing...</p></dd><dt><span·class="term">Michael·McCallum·<code·class="email">(gholam·AT·xtra.co.nz)</code></span></dt><dd><p>Core·Developer</p></dd><dt><span·class="term">Jochen·Wilhemly·<code·class="email">(digisnap·AT·cs.tu-be·✂ | 3317 | documentation</p></dd><dt><span·class="term"><span·class="firstname">Joseph</span>·<span·class="surname">Wenninger</span>·<code·class="email">(kde·AT·jowenn.at)</code></span></dt><dd><p>Core·Developer,·syntax·highlighting</p></dd><dt><span·class="term">Michael·Bartl·<code·class="email">(michael.bartl1·AT·chello.at)</code></span></dt><dd><p>Core·Developer</p></dd><dt><span·class="term">Phlip·<code·class="email">(phlip_cpp·AT·my-deja.com)</code></span></dt><dd><p>The·project·compiler</p></dd><dt><span·class="term"><span·class="firstname">Waldo</span>·<span·class="surname">Bastian</span>·<code·class="email">(bastian·AT·kde.org)</code></span></dt><dd><p>The·cool·buffer·system</p></dd><dt><span·class="term">Matt·Newell·<code·class="email">(newellm·AT·proaxis.com)</code></span></dt><dd><p>Testing...</p></dd><dt><span·class="term">Michael·McCallum·<code·class="email">(gholam·AT·xtra.co.nz)</code></span></dt><dd><p>Core·Developer</p></dd><dt><span·class="term">Jochen·Wilhemly·<code·class="email">(digisnap·AT·cs.tu-be·✂ |
3318 | <code·class="email">(sethmr·AT·bellatlantic.org)</code></p><p>Documentation·copyright·2002,·2003,·2005·<span·class="firstname">Anders</span>·<span·class="surname">Lund</span> | 3318 | <code·class="email">(sethmr·AT·bellatlantic.org)</code></p><p>Documentation·copyright·2002,·2003,·2005·<span·class="firstname">Anders</span>·<span·class="surname">Lund</span> |
3319 | <code·class="email">(anders·AT·alweb.dk)</code></p><p><a·name="gnu-fdl"></a>This·documentation·is·licensed·under·the·terms·of·the·<a·class="ulink"·href="common/fdl-license.html"·target="_top">GNU·Free·Documentation | 3319 | <code·class="email">(anders·AT·alweb.dk)</code></p><p><a·name="gnu-fdl"></a>This·documentation·is·licensed·under·the·terms·of·the·<a·class="ulink"·href="common/fdl-license.html"·target="_top">GNU·Free·Documentation |
3320 | License</a>.</p><p>This·program·is·licensed·under·the·terms·of·the·<a·class="ulink"·href="common/gpl-license.html"·target="_top">GNU·General·Public·License</a>.</p></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="config-variables.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="highlight.html">Next</a></td></tr><tr><td·class="prevCell">Configuring·With·Document·Variables </td><td·class="upCell"> </td><td·class="nextCell"> Working·with·Syntax·Highlighting</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME><FILENAME·filename="highlight.html"><html><head><title>Appendix A. Working·with·Syntax·Highlighting</title><link·rel="stylesheet"·type="text/·✂ | 3320 | License</a>.</p><p>This·program·is·licensed·under·the·terms·of·the·<a·class="ulink"·href="common/gpl-license.html"·target="_top">GNU·General·Public·License</a>.</p></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="config-variables.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="highlight.html">Next</a></td></tr><tr><td·class="prevCell">Configuring·With·Document·Variables </td><td·class="upCell"> </td><td·class="nextCell"> Working·with·Syntax·Highlighting</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME><FILENAME·filename="highlight.html"><html><head><title>Appendix A. Working·with·Syntax·Highlighting</title><link·rel="stylesheet"·type="text/·✂ |
3321 | display·text·in·different·styles/colors,·depending·on·the·function·of | 3321 | display·text·in·different·styles/colors,·depending·on·the·function·of |
3322 | the·string·in·relation·to·the·purpose·of·the·file.··In·program·source | 3322 | the·string·in·relation·to·the·purpose·of·the·file.··In·program·source |
3323 | code·for·example,·control·statements·may·be·rendered·bold,·while·data | 3323 | code·for·example,·control·statements·may·be·rendered·bold,·while·data |
3324 | types·and·comments·get·different·colors·from·the·rest·of·the | 3324 | types·and·comments·get·different·colors·from·the·rest·of·the |
3325 | text.·This·greatly·enhances·the·readability·of·the·text,·and·thus | 3325 | text.·This·greatly·enhances·the·readability·of·the·text,·and·thus |
3326 | helps·the·author·to·be·more·efficient·and·productive.</p><div·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="mediaobject"><hr><img·src="highlighted.png"·alt="A·Perl·function,·rendered·with·syntax·highlighting."><div·class="caption"><p>A·Perl·function,·rendered·with·syntax·highlighting.</p></div><hr></div><div·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="mediaobject"><hr><img·src="unhighlighted.png"·alt="The·same·Perl·function,·without·highlighting."><div·class="caption"><p>The·same·Perl·function,·without·highlighting.</p></div><hr></div><p>Of·the·two·examples,·which·is·easiest·to·read?</p><p><span·class="application">Kate</span>·comes·with·a·flexible,·configurable·and·capable·system | 3326 | helps·the·author·to·be·more·efficient·and·productive.</p><div·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="mediaobject"><hr><img·src="highlighted.png"·alt="A·Perl·function,·rendered·with·syntax·highlighting."><div·class="caption"><p>A·Perl·function,·rendered·with·syntax·highlighting.</p></div><hr></div><div·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="mediaobject"><hr><img·src="unhighlighted.png"·alt="The·same·Perl·function,·without·highlighting."><div·class="caption"><p>The·same·Perl·function,·without·highlighting.</p></div><hr></div><p>Of·the·two·examples,·which·is·easiest·to·read?</p><p><span·class="application">Kate</span>·comes·with·a·flexible,·configurable·and·capable·system |
3327 | for·doing·syntax·highlighting,·and·the·standard·distribution·provides | 3327 | for·doing·syntax·highlighting,·and·the·standard·distribution·provides |
Offset 3399, 15 lines modified | Offset 3399, 15 lines modified |
3399 | styles.·A·few·syntax·definitions·use·more·styles·than·there·are | 3399 | styles.·A·few·syntax·definitions·use·more·styles·than·there·are |
3400 | defaults,·so·if·you·use·a·format·often,·it·may·be·worth·launching·the | 3400 | defaults,·so·if·you·use·a·format·often,·it·may·be·worth·launching·the |
3401 | configuration·dialog·to·see·if·some·concepts·use·the·same | 3401 | configuration·dialog·to·see·if·some·concepts·use·the·same |
3402 | style.·For·example,·there·is·only·one·default·style·for·strings,·but·as | 3402 | style.·For·example,·there·is·only·one·default·style·for·strings,·but·as |
3403 | the·Perl·programming·language·operates·with·two·types·of·strings,·you | 3403 | the·Perl·programming·language·operates·with·two·types·of·strings,·you |
3404 | can·enhance·the·highlighting·by·configuring·those·to·be·slightly | 3404 | can·enhance·the·highlighting·by·configuring·those·to·be·slightly |
3405 | different.·All·<a·class="link"·href="katehighlight-xml-format.html#kate-highlight-default-styles"·title="Available·Default·Styles">available·default·styles</a> | 3405 | different.·All·<a·class="link"·href="katehighlight-xml-format.html#kate-highlight-default-styles"·title="Available·Default·Styles">available·default·styles</a> |
3406 | will·be·explained·later.</p></div></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="highlight.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="katehighlight-xml-format.html">Next</a></td></tr><tr><td·class="prevCell">Working·with·Syntax·Highlighting </td><td·class="upCell">Working·with·Syntax·Highlighting</td><td·class="nextCell"> The·Highlight·Definition·<acronym·class="acronym">XML</acronym>·Format</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME><FILENAME·filename="katehighlight-xml-format.html"><html><head><title>The·Highlight·Definition·XML·Format</title><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-default.css"><li·✂ | 3406 | will·be·explained·later.</p></div></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="highlight.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="katehighlight-xml-format.html">Next</a></td></tr><tr><td·class="prevCell">Working·with·Syntax·Highlighting </td><td·class="upCell">Working·with·Syntax·Highlighting</td><td·class="nextCell"> The·Highlight·Definition·<acronym·class="acronym">XML</acronym>·Format</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME><FILENAME·filename="katehighlight-xml-format.html"><html><head><title>The·Highlight·Definition·XML·Format</title><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-default.css"><li·✂ |
3407 | format.·Based·on·a·small·example·it·will·describe·the·main·components | 3407 | format.·Based·on·a·small·example·it·will·describe·the·main·components |
3408 | and·their·meaning·and·usage.·The·next·section·will·go·into·detail·with | 3408 | and·their·meaning·and·usage.·The·next·section·will·go·into·detail·with |
3409 | the·highlight·detection·rules.</p><p>The·formal·definition,·also·known·as·the·<acronym·class="acronym">DTD</acronym>,·is·stored | 3409 | the·highlight·detection·rules.</p><p>The·formal·definition,·also·known·as·the·<acronym·class="acronym">DTD</acronym>,·is·stored |
3410 | in·the·file·<code·class="filename">language.dtd</code>·which·should·be | 3410 | in·the·file·<code·class="filename">language.dtd</code>·which·should·be |
3411 | installed·on·your·system·in·the·folder | 3411 | installed·on·your·system·in·the·folder |
3412 | <code·class="filename">$<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="envar"><code·class="envar">KDEDIR</code></span>/share/apps/katepart/syntax</code>. | 3412 | <code·class="filename">$<span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="envar"><code·class="envar">KDEDIR</code></span>/share/apps/katepart/syntax</code>. |
3413 | </p><div·class="variablelist"><p·class="title"><b>Main·sections·of·<span·class="application">Kate</span>·Highlight·Definition·files</b></p><dl><dt><span·class="term">A·highlighting·file·contains·a·header·that·sets·the·XML·version·and·the·doctype:</span></dt><dd><pre·class="programlisting"> | 3413 | </p><div·class="variablelist"><p·class="title"><b>Main·sections·of·<span·class="application">Kate</span>·Highlight·Definition·files</b></p><dl><dt><span·class="term">A·highlighting·file·contains·a·header·that·sets·the·XML·version·and·the·doctype:</span></dt><dd><pre·class="programlisting"> |
Offset 3639, 15 lines modified | Offset 3639, 15 lines modified |
3639 | the·source.·This·is·required·to·make,·for·example,·commenting·work,·if·text | 3639 | the·source.·This·is·required·to·make,·for·example,·commenting·work,·if·text |
3640 | matched·by·the·included·context·is·a·different·highlight·from·the·host | 3640 | matched·by·the·included·context·is·a·different·highlight·from·the·host |
3641 | context. | 3641 | context. |
3642 | </p></dd><dt><span·class="term">DetectSpaces</span></dt><dd><p>Detect·whitespaces.</p><pre·class="programlisting"><DetectSpaces·(common·attributes)·/></pre><p>This·rule·has·no·specific·attributes.</p><p>Use·this·rule·if·you·know·that·there·can·be·several·whitespaces·ahead, | 3642 | </p></dd><dt><span·class="term">DetectSpaces</span></dt><dd><p>Detect·whitespaces.</p><pre·class="programlisting"><DetectSpaces·(common·attributes)·/></pre><p>This·rule·has·no·specific·attributes.</p><p>Use·this·rule·if·you·know·that·there·can·be·several·whitespaces·ahead, |
3643 | for·example·in·the·beginning·of·indented·lines.·This·rule·will·skip·all | 3643 | for·example·in·the·beginning·of·indented·lines.·This·rule·will·skip·all |
3644 | whitespace·at·once,·instead·of·testing·multiple·rules·and·skipping·one·at·a | 3644 | whitespace·at·once,·instead·of·testing·multiple·rules·and·skipping·one·at·a |
3645 | time·due·to·no·match.</p></dd><dt><span·class="term">DetectIdentifier</span></dt><dd><p>Detect·identifier·strings·(as·a·regular·expression:·[a-zA-Z_][a-zA-Z0-9_]*).</p><pre·class="programlisting"><DetectIdentifier·(common·attributes)·/></pre><p>This·rule·has·no·specific·attributes.</p><p>Use·this·rule·to·skip·a·string·of·word·characters·at·once,·rather·than | 3645 | time·due·to·no·match.</p></dd><dt><span·class="term">DetectIdentifier</span></dt><dd><p>Detect·identifier·strings·(as·a·regular·expression:·[a-zA-Z_][a-zA-Z0-9_]*).</p><pre·class="programlisting"><DetectIdentifier·(common·attributes)·/></pre><p>This·rule·has·no·specific·attributes.</p><p>Use·this·rule·to·skip·a·string·of·word·characters·at·once,·rather·than |
3646 | testing·with·multiple·rules·and·skipping·one·at·a·time·due·to·no·match.</p></dd></dl></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp156657976"></a>Tips·&·Tricks</h3></div></div></div><div·class="itemizedlist"><p>Once·you·have·understood·how·the·context·switching·works·it·will·be | 3646 | testing·with·multiple·rules·and·skipping·one·at·a·time·due·to·no·match.</p></dd></dl></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp156674360"></a>Tips·&·Tricks</h3></div></div></div><div·class="itemizedlist"><p>Once·you·have·understood·how·the·context·switching·works·it·will·be |
3647 | easy·to·write·highlight·definitions.·Though·you·should·carefully·check·what | 3647 | easy·to·write·highlight·definitions.·Though·you·should·carefully·check·what |
3648 | rule·you·choose·in·what·situation.·Regular·expressions·are·very·mighty,·but | 3648 | rule·you·choose·in·what·situation.·Regular·expressions·are·very·mighty,·but |
3649 | they·are·slow·compared·to·the·other·rules.·So·you·may·consider·the·following | 3649 | they·are·slow·compared·to·the·other·rules.·So·you·may·consider·the·following |
3650 | tips. | 3650 | tips. |
3651 | </p><ul·class="itemizedlist"·type="disc"><li·class="listitem"><p>If·you·only·match·two·characters·use·<strong·class="userinput"><code>Detect2Chars</code></strong> | 3651 | </p><ul·class="itemizedlist"·type="disc"><li·class="listitem"><p>If·you·only·match·two·characters·use·<strong·class="userinput"><code>Detect2Chars</code></strong> |
3652 | instead·of·<strong·class="userinput"><code>StringDetect</code></strong>.·The·same·applies·to | 3652 | instead·of·<strong·class="userinput"><code>StringDetect</code></strong>.·The·same·applies·to |
3653 | <strong·class="userinput"><code>DetectChar</code></strong>.</p></li><li·class="listitem"><p>Regular·expressions·are·easy·to·use·but·often·there·is·another·much | 3653 | <strong·class="userinput"><code>DetectChar</code></strong>.</p></li><li·class="listitem"><p>Regular·expressions·are·easy·to·use·but·often·there·is·another·much |
Offset 3671, 20 lines modified | Offset 3671, 20 lines modified |
3671 | <span·class="emphasis"><em>ENTITIES</em></span>.·Example:</p><pre·class="programlisting"> | 3671 | <span·class="emphasis"><em>ENTITIES</em></span>.·Example:</p><pre·class="programlisting"> |
3672 | <?xml·version="1.0"·encoding="UTF-8"?> | 3672 | <?xml·version="1.0"·encoding="UTF-8"?> |
3673 | <!DOCTYPE·language·SYSTEM·"language.dtd" | 3673 | <!DOCTYPE·language·SYSTEM·"language.dtd" |
3674 | [ | 3674 | [ |
3675 | ········<!ENTITY·myref····"[A-Za-z_:][\w.:_-]*"> | 3675 | ········<!ENTITY·myref····"[A-Za-z_:][\w.:_-]*"> |
3676 | ]> | 3676 | ]> |
3677 | </pre><p>Now·you·can·use·<span·class="emphasis"><em>&myref;</em></span>·instead·of·the·regular | 3677 | </pre><p>Now·you·can·use·<span·class="emphasis"><em>&myref;</em></span>·instead·of·the·regular |
3678 | expression.</p></li></ul></div></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="katehighlight-xml-format.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="regular-expressions.html">Next</a></td></tr><tr><td·class="prevCell">The·Highlight·Definition·<acronym·class="acronym">XML</acronym>·Format </td><td·class="upCell">Working·with·Syntax·Highlighting</td><td·class="nextCell"> Regular·Expressions</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="credits.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="in·✂ | 3678 | expression.</p></li></ul></div></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="katehighlight-xml-format.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="regular-expressions.html">Next</a></td></tr><tr><td·class="prevCell">The·Highlight·Definition·<acronym·class="acronym">XML</acronym>·Format </td><td·class="upCell">Working·with·Syntax·Highlighting</td><td·class="nextCell"> Regular·Expressions</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="credits.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="in·✂ |
3679 | covering·introduction·to·the·world·of·<span·class="emphasis"><em>regular | 3679 | covering·introduction·to·the·world·of·<span·class="emphasis"><em>regular |
3680 | expressions</em></span>.·It·documents·regular·expressions·in·the·form | 3680 | expressions</em></span>.·It·documents·regular·expressions·in·the·form |
3681 | available·within·<span·class="application">Kate</span>,·which·is·not·compatible·with·the·regular | 3681 | available·within·<span·class="application">Kate</span>,·which·is·not·compatible·with·the·regular |
3682 | expressions·of·perl,·nor·with·those·of·for·example | 3682 | expressions·of·perl,·nor·with·those·of·for·example |
3683 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>grep</strong></span></span>.</pre><div·class="sect1"><div·class="titlepage"><div><div><h2·class="title"·style="clear:·both"><a·name="idp156955704"></a>Introduction</h2></div></div></div><p><span·class="emphasis"><em>Regular·Expressions</em></span>·provides·us·with·a·way | 3683 | <span·xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"·class="command"><span·class="command"><strong>grep</strong></span></span>.</pre><div·class="sect1"><div·class="titlepage"><div><div><h2·class="title"·style="clear:·both"><a·name="idp156951608"></a>Introduction</h2></div></div></div><p><span·class="emphasis"><em>Regular·Expressions</em></span>·provides·us·with·a·way |
3684 | to·describe·some·possible·contents·of·a·text·string·in·a·way | 3684 | to·describe·some·possible·contents·of·a·text·string·in·a·way |
3685 | understood·by·a·small·piece·of·software,·so·that·it·can·investigate·if | 3685 | understood·by·a·small·piece·of·software,·so·that·it·can·investigate·if |
3686 | a·text·matches,·and·also·in·the·case·of·advanced·applications·with·the | 3686 | a·text·matches,·and·also·in·the·case·of·advanced·applications·with·the |
3687 | means·of·saving·pieces·or·the·matching·text.</p><p>An·example:·Say·you·want·to·search·a·text·for·paragraphs·that | 3687 | means·of·saving·pieces·or·the·matching·text.</p><p>An·example:·Say·you·want·to·search·a·text·for·paragraphs·that |
3688 | starts·with·either·of·the·names·<span·class="quote">“<span·class="quote">Henrik</span>”</span>·or | 3688 | starts·with·either·of·the·names·<span·class="quote">“<span·class="quote">Henrik</span>”</span>·or |
3689 | <span·class="quote">“<span·class="quote">Pernille</span>”</span>·followed·by·some·form·of·the·verb | 3689 | <span·class="quote">“<span·class="quote">Pernille</span>”</span>·followed·by·some·form·of·the·verb |
3690 | <span·class="quote">“<span·class="quote">say</span>”</span>.</p><p>With·a·normal·search,·you·would·start·out·searching·for·the | 3690 | <span·class="quote">“<span·class="quote">say</span>”</span>.</p><p>With·a·normal·search,·you·would·start·out·searching·for·the |
Offset 3723, 26 lines modified | Offset 3723, 26 lines modified |
3723 | regular·expression,·that·is·often·marked·as·selected)·or·either·the | 3723 | regular·expression,·that·is·often·marked·as·selected)·or·either·the |
3724 | name·found,·or·the·last·part·of·the·verb.</p><p>All·together,·the·expression·will·match·where·we·wanted·it·to, | 3724 | name·found,·or·the·last·part·of·the·verb.</p><p>All·together,·the·expression·will·match·where·we·wanted·it·to, |
3725 | and·only·there.</p><p>The·following·sections·will·describe·in·details·how·to·construct | 3725 | and·only·there.</p><p>The·following·sections·will·describe·in·details·how·to·construct |
3726 | and·use·patterns,·character·classes,·assertions,·quantifiers·and | 3726 | and·use·patterns,·character·classes,·assertions,·quantifiers·and |
3727 | back·references,·and·the·final·section·will·give·a·few·useful | 3727 | back·references,·and·the·final·section·will·give·a·few·useful |
3728 | examples.</p></div><FILENAME·filename="regex-patterns.html"><html><head><title>Patterns</title><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-default.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-docs.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-localised.css"><meta·name="generator"·content="DocBook·XSL·Stylesheets·V1.76.1"><meta·name="keywords"·content="KDE,·kdebase,·Kate,·text,·editor,·programmer,·programming,·projects,·MDI,·Multi,·Document,·Interface,·terminal,·console"><link·rel="home"·href="index.html"·title="The·Kate·Handbook"><link·rel="up"·href="regular-expressions.html"·title="Appendix B. Regular·Expressions"><link·rel="prev"·href="regular-expressions.html"·title="Appendix B. Regular·Expressions"><link·rel="next"·href="quantifiers.html"·title="Quantifiers"><meta·http-equiv="Content-Type"·content="text/html;·charset=utf-8"><meta·name="GENERATOR"·content="KDE·XSL·Stylesheet·V1.14·using·libxslt"></head><body·bgcolor="white"·text="black"·link="#00·✂ | 3728 | examples.</p></div><FILENAME·filename="regex-patterns.html"><html><head><title>Patterns</title><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-default.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-docs.css"><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-localised.css"><meta·name="generator"·content="DocBook·XSL·Stylesheets·V1.76.1"><meta·name="keywords"·content="KDE,·kdebase,·Kate,·text,·editor,·programmer,·programming,·projects,·MDI,·Multi,·Document,·Interface,·terminal,·console"><link·rel="home"·href="index.html"·title="The·Kate·Handbook"><link·rel="up"·href="regular-expressions.html"·title="Appendix B. Regular·Expressions"><link·rel="prev"·href="regular-expressions.html"·title="Appendix B. Regular·Expressions"><link·rel="next"·href="quantifiers.html"·title="Quantifiers"><meta·http-equiv="Content-Type"·content="text/html;·charset=utf-8"><meta·name="GENERATOR"·content="KDE·XSL·Stylesheet·V1.14·using·libxslt"></head><body·bgcolor="white"·text="black"·link="#00·✂ |
3729 | classes.·Patterns·may·contain·sub-patterns,·which·are·patterns·enclosed | 3729 | classes.·Patterns·may·contain·sub-patterns,·which·are·patterns·enclosed |
3730 | in·parentheses.</p><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp156976696"></a>Escaping·characters</h3></div></div></div><p>In·patterns·as·well·as·in·character·classes,·some·characters | 3730 | in·parentheses.</p><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp156972600"></a>Escaping·characters</h3></div></div></div><p>In·patterns·as·well·as·in·character·classes,·some·characters |
3731 | have·a·special·meaning.··To·literally·match·any·of·those·characters, | 3731 | have·a·special·meaning.··To·literally·match·any·of·those·characters, |
3732 | they·must·be·marked·or·<span·class="emphasis"><em>escaped</em></span>·to·let·the·regular | 3732 | they·must·be·marked·or·<span·class="emphasis"><em>escaped</em></span>·to·let·the·regular |
3733 | expression·software·know·that·it·should·interpret·such·characters·in | 3733 | expression·software·know·that·it·should·interpret·such·characters·in |
3734 | their·literal·meaning.</p><p>This·is·done·by·prepending·the·character·with·a·backslash | 3734 | their·literal·meaning.</p><p>This·is·done·by·prepending·the·character·with·a·backslash |
3735 | (<code·class="literal">\</code>).</p><p>The·regular·expression·software·will·silently·ignore·escaping·a | 3735 | (<code·class="literal">\</code>).</p><p>The·regular·expression·software·will·silently·ignore·escaping·a |
3736 | character·that·does·not·have·any·special·meaning·in·the·context,·so | 3736 | character·that·does·not·have·any·special·meaning·in·the·context,·so |
3737 | escaping·for·example·a·<span·class="quote">“<span·class="quote">j</span>”</span>·(<strong·class="userinput"><code>\j</code></strong>)·is | 3737 | escaping·for·example·a·<span·class="quote">“<span·class="quote">j</span>”</span>·(<strong·class="userinput"><code>\j</code></strong>)·is |
3738 | safe.·If·you·are·in·doubt·whether·a·character·could·have·a·special | 3738 | safe.·If·you·are·in·doubt·whether·a·character·could·have·a·special |
3739 | meaning,·you·can·therefore·escape·it·safely.</p><p>Escaping·of·course·includes·the·backslash·character·itself,·to | 3739 | meaning,·you·can·therefore·escape·it·safely.</p><p>Escaping·of·course·includes·the·backslash·character·itself,·to |
3740 | literally·match·a·such,·you·would·write | 3740 | literally·match·a·such,·you·would·write |
3741 | <strong·class="userinput"><code>\\</code></strong>.</p></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp156981048"></a>Character·Classes·and·abbreviations</h3></div></div></div><p>A·<span·class="emphasis"><em>character·class</em></span>·is·an·expression·that | 3741 | <strong·class="userinput"><code>\\</code></strong>.</p></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp156976952"></a>Character·Classes·and·abbreviations</h3></div></div></div><p>A·<span·class="emphasis"><em>character·class</em></span>·is·an·expression·that |
3742 | matches·one·of·a·defined·set·of·characters.·In·Regular·Expressions, | 3742 | matches·one·of·a·defined·set·of·characters.·In·Regular·Expressions, |
3743 | character·classes·are·defined·by·putting·the·legal·characters·for·the | 3743 | character·classes·are·defined·by·putting·the·legal·characters·for·the |
3744 | class·in·square·brackets,·<code·class="literal">[]</code>,·or·by·using·one·of | 3744 | class·in·square·brackets,·<code·class="literal">[]</code>,·or·by·using·one·of |
3745 | the·abbreviated·classes·described·below.</p><p>Simple·character·classes·just·contains·one·or·more·literal | 3745 | the·abbreviated·classes·described·below.</p><p>Simple·character·classes·just·contains·one·or·more·literal |
3746 | characters,·for·example·<strong·class="userinput"><code>[abc]</code></strong>·(matching·either | 3746 | characters,·for·example·<strong·class="userinput"><code>[abc]</code></strong>·(matching·either |
3747 | of·the·letters·<span·class="quote">“<span·class="quote">a</span>”</span>,·<span·class="quote">“<span·class="quote">b</span>”</span>·or·<span·class="quote">“<span·class="quote">c</span>”</span>) | 3747 | of·the·letters·<span·class="quote">“<span·class="quote">a</span>”</span>,·<span·class="quote">“<span·class="quote">b</span>”</span>·or·<span·class="quote">“<span·class="quote">c</span>”</span>) |
3748 | or·<strong·class="userinput"><code>[0123456789]</code></strong>·(matching·any·digit).</p><p>Because·letters·and·digits·have·a·logical·order,·you·can | 3748 | or·<strong·class="userinput"><code>[0123456789]</code></strong>·(matching·any·digit).</p><p>Because·letters·and·digits·have·a·logical·order,·you·can |
Offset 3773, 28 lines modified | Offset 3773, 28 lines modified |
3773 | underscore·(<code·class="literal">_</code>)·is·not·matched,·as·is·the·case·with·perl·regular·expressions. | 3773 | underscore·(<code·class="literal">_</code>)·is·not·matched,·as·is·the·case·with·perl·regular·expressions. |
3774 | Equal·to·<code·class="literal">[a-zA-Z0-9]</code></p></dd><dt><span·class="term"><strong·class="userinput"><code>\W</code></strong></span></dt><dd><p>Matches·any·non-word·character·-·anything·but·letters·or·numbers. | 3774 | Equal·to·<code·class="literal">[a-zA-Z0-9]</code></p></dd><dt><span·class="term"><strong·class="userinput"><code>\W</code></strong></span></dt><dd><p>Matches·any·non-word·character·-·anything·but·letters·or·numbers. |
3775 | Equal·to·<code·class="literal">[^a-zA-Z0-9]</code>·or·<code·class="literal">[^\w]</code></p></dd></dl></div><p> | 3775 | Equal·to·<code·class="literal">[^a-zA-Z0-9]</code>·or·<code·class="literal">[^\w]</code></p></dd></dl></div><p> |
| |
3776 | </p><p>The·abbreviated·classes·can·be·put·inside·a·custom·class,·for | 3776 | </p><p>The·abbreviated·classes·can·be·put·inside·a·custom·class,·for |
3777 | example·to·match·a·word·character,·a·blank·or·a·dot,·you·could·write | 3777 | example·to·match·a·word·character,·a·blank·or·a·dot,·you·could·write |
3778 | <strong·class="userinput"><code>[\w·\.]</code></strong></p><div·class="note"·style="margin-left:·0.5in;·margin-right:·0.5in;"><h3·class="title">Note</h3><p>The·POSIX·notation·of·classes,·<strong·class="userinput"><code>[:<class | 3778 | <strong·class="userinput"><code>[\w·\.]</code></strong></p><div·class="note"·style="margin-left:·0.5in;·margin-right:·0.5in;"><h3·class="title">Note</h3><p>The·POSIX·notation·of·classes,·<strong·class="userinput"><code>[:<class |
3779 | name>:]</code></strong>·is·currently·not·supported.</p></div><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="idp157031352"></a>Characters·with·special·meanings·inside·character·classes</h4></div></div></div><p>The·following·characters·has·a·special·meaning·inside·the | 3779 | name>:]</code></strong>·is·currently·not·supported.</p></div><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="idp157023160"></a>Characters·with·special·meanings·inside·character·classes</h4></div></div></div><p>The·following·characters·has·a·special·meaning·inside·the |
3780 | <span·class="quote">“<span·class="quote">[]</span>”</span>·character·class·construct,·and·must·be·escaped·to·be | 3780 | <span·class="quote">“<span·class="quote">[]</span>”</span>·character·class·construct,·and·must·be·escaped·to·be |
3781 | literally·included·in·a·class:</p><div·class="variablelist"><dl><dt><span·class="term"><strong·class="userinput"><code>]</code></strong></span></dt><dd><p>Ends·the·character·class.·Must·be·escaped·unless·it·is·the·very·first·character·in·the | 3781 | literally·included·in·a·class:</p><div·class="variablelist"><dl><dt><span·class="term"><strong·class="userinput"><code>]</code></strong></span></dt><dd><p>Ends·the·character·class.·Must·be·escaped·unless·it·is·the·very·first·character·in·the |
3782 | class·(may·follow·an·unescaped·caret)</p></dd><dt><span·class="term"><strong·class="userinput"><code>^</code></strong>·(caret)</span></dt><dd><p>Denotes·a·negative·class,·if·it·is·the·first·character.·Must·be·escaped·to·match·literally·if·it·is·the·first·character·in·the·class.</p></dd><dt><span·class="term"><strong·class="userinput"><code>-</code></strong>·(dash)</span></dt><dd><p>Denotes·a·logical·range.·Must·always·be·escaped·within·a·character·class.</p></dd><dt><span·class="term"><strong·class="userinput"><code>\</code></strong>·(backslash)</span></dt><dd><p>The·escape·character.·Must·always·be·escaped.</p></dd></dl></div></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp157039544"></a>Alternatives:·matching·<span·class="quote">“<span·class="quote">one·of</span>”</span></h3></div></div></div><p>If·you·want·to·match·one·of·a·set·of·alternative·patterns,·you | 3782 | class·(may·follow·an·unescaped·caret)</p></dd><dt><span·class="term"><strong·class="userinput"><code>^</code></strong>·(caret)</span></dt><dd><p>Denotes·a·negative·class,·if·it·is·the·first·character.·Must·be·escaped·to·match·literally·if·it·is·the·first·character·in·the·class.</p></dd><dt><span·class="term"><strong·class="userinput"><code>-</code></strong>·(dash)</span></dt><dd><p>Denotes·a·logical·range.·Must·always·be·escaped·within·a·character·class.</p></dd><dt><span·class="term"><strong·class="userinput"><code>\</code></strong>·(backslash)</span></dt><dd><p>The·escape·character.·Must·always·be·escaped.</p></dd></dl></div></div></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp157031352"></a>Alternatives:·matching·<span·class="quote">“<span·class="quote">one·of</span>”</span></h3></div></div></div><p>If·you·want·to·match·one·of·a·set·of·alternative·patterns,·you |
3783 | can·separate·those·with·<code·class="literal">|</code>·(vertical·bar·character).</p><p>For·example·to·find·either·<span·class="quote">“<span·class="quote">John</span>”</span>·or·<span·class="quote">“<span·class="quote">Harry</span>”</span>·you·would·use·an·expression·<strong·class="userinput"><code>John|Harry</code></strong>.</p></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp157042872"></a>Sub·Patterns</h3></div></div></div><p><span·class="emphasis"><em>Sub·patterns</em></span>·are·patterns·enclosed·in | 3783 | can·separate·those·with·<code·class="literal">|</code>·(vertical·bar·character).</p><p>For·example·to·find·either·<span·class="quote">“<span·class="quote">John</span>”</span>·or·<span·class="quote">“<span·class="quote">Harry</span>”</span>·you·would·use·an·expression·<strong·class="userinput"><code>John|Harry</code></strong>.</p></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp157034680"></a>Sub·Patterns</h3></div></div></div><p><span·class="emphasis"><em>Sub·patterns</em></span>·are·patterns·enclosed·in |
3784 | parentheses,·and·they·have·several·uses·in·the·world·of·regular | 3784 | parentheses,·and·they·have·several·uses·in·the·world·of·regular |
3785 | expressions.</p><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="idp157044152"></a>Specifying·alternatives</h4></div></div></div><p>You·may·use·a·sub·pattern·to·group·a·set·of·alternatives·within | 3785 | expressions.</p><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="idp157035960"></a>Specifying·alternatives</h4></div></div></div><p>You·may·use·a·sub·pattern·to·group·a·set·of·alternatives·within |
3786 | a·larger·pattern.·The·alternatives·are·separated·by·the·character | 3786 | a·larger·pattern.·The·alternatives·are·separated·by·the·character |
3787 | <span·class="quote">“<span·class="quote">|</span>”</span>·(vertical·bar).</p><p>For·example·to·match·either·of·the·words·<span·class="quote">“<span·class="quote">int</span>”</span>, | 3787 | <span·class="quote">“<span·class="quote">|</span>”</span>·(vertical·bar).</p><p>For·example·to·match·either·of·the·words·<span·class="quote">“<span·class="quote">int</span>”</span>, |
3788 | <span·class="quote">“<span·class="quote">float</span>”</span>·or·<span·class="quote">“<span·class="quote">double</span>”</span>,·you·could·use·the | 3788 | <span·class="quote">“<span·class="quote">float</span>”</span>·or·<span·class="quote">“<span·class="quote">double</span>”</span>,·you·could·use·the |
3789 | pattern·<strong·class="userinput"><code>int|float|double</code></strong>.·If·you·only·want·to | 3789 | pattern·<strong·class="userinput"><code>int|float|double</code></strong>.·If·you·only·want·to |
3790 | find·one·if·it·is·followed·by·some·whitespace·and·then·some·letters, | 3790 | find·one·if·it·is·followed·by·some·whitespace·and·then·some·letters, |
3791 | put·the·alternatives·inside·a·subpattern: | 3791 | put·the·alternatives·inside·a·subpattern: |
3792 | <strong·class="userinput"><code>(int|float|double)\s+\w+</code></strong>.</p></div><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="idp157047992"></a>Capturing·matching·text·(back·references)</h4></div></div></div><p>If·you·want·to·use·a·back·reference,·use·a·sub·pattern·to·have | 3792 | <strong·class="userinput"><code>(int|float|double)\s+\w+</code></strong>.</p></div><div·class="sect3"><div·class="titlepage"><div><div><h4·class="title"><a·name="idp157039800"></a>Capturing·matching·text·(back·references)</h4></div></div></div><p>If·you·want·to·use·a·back·reference,·use·a·sub·pattern·to·have |
3793 | the·desired·part·of·the·pattern·remembered.</p><p>For·example,·if·you·want·to·find·two·occurrences·of·the·same | 3793 | the·desired·part·of·the·pattern·remembered.</p><p>For·example,·if·you·want·to·find·two·occurrences·of·the·same |
3794 | word·separated·by·a·comma·and·possibly·some·whitespace,·you·could | 3794 | word·separated·by·a·comma·and·possibly·some·whitespace,·you·could |
3795 | write·<strong·class="userinput"><code>(\w+),\s*\1</code></strong>.·The·sub·pattern | 3795 | write·<strong·class="userinput"><code>(\w+),\s*\1</code></strong>.·The·sub·pattern |
3796 | <code·class="literal">\w+</code>·would·find·a·chunk·of·word·characters,·and·the | 3796 | <code·class="literal">\w+</code>·would·find·a·chunk·of·word·characters,·and·the |
3797 | entire·expression·would·match·if·those·were·followed·by·a·comma,·0·or | 3797 | entire·expression·would·match·if·those·were·followed·by·a·comma,·0·or |
3798 | more·whitespace·and·then·an·equal·chunk·of·word·characters.··(The | 3798 | more·whitespace·and·then·an·equal·chunk·of·word·characters.··(The |
3799 | string·<code·class="literal">\1</code>·references·<span·class="emphasis"><em>the·first·sub·pattern | 3799 | string·<code·class="literal">\1</code>·references·<span·class="emphasis"><em>the·first·sub·pattern |
Offset 3817, 23 lines modified | Offset 3817, 23 lines modified |
| |
3817 | </p><div·class="variablelist"><dl><dt><span·class="term"><strong·class="userinput"><code>{1}</code></strong></span></dt><dd><p>Exactly·1·occurrence</p></dd><dt><span·class="term"><strong·class="userinput"><code>{0,1}</code></strong></span></dt><dd><p>Zero·or·1·occurrences</p></dd><dt><span·class="term"><strong·class="userinput"><code>{,1}</code></strong></span></dt><dd><p>The·same,·with·less·work;)</p></dd><dt><span·class="term"><strong·class="userinput"><code>{5,10}</code></strong></span></dt><dd><p>At·least·5·but·maximum·10·occurrences.</p></dd><dt><span·class="term"><strong·class="userinput"><code>{5,}</code></strong></span></dt><dd><p>At·least·5·occurrences,·no·maximum.</p></dd></dl></div><p> | 3817 | </p><div·class="variablelist"><dl><dt><span·class="term"><strong·class="userinput"><code>{1}</code></strong></span></dt><dd><p>Exactly·1·occurrence</p></dd><dt><span·class="term"><strong·class="userinput"><code>{0,1}</code></strong></span></dt><dd><p>Zero·or·1·occurrences</p></dd><dt><span·class="term"><strong·class="userinput"><code>{,1}</code></strong></span></dt><dd><p>The·same,·with·less·work;)</p></dd><dt><span·class="term"><strong·class="userinput"><code>{5,10}</code></strong></span></dt><dd><p>At·least·5·but·maximum·10·occurrences.</p></dd><dt><span·class="term"><strong·class="userinput"><code>{5,}</code></strong></span></dt><dd><p>At·least·5·occurrences,·no·maximum.</p></dd></dl></div><p> |
| |
3818 | </p><p>Additionally,·there·are·some·abbreviations: | 3818 | </p><p>Additionally,·there·are·some·abbreviations: |
| |
3819 | </p><div·class="variablelist"><dl><dt><span·class="term"><strong·class="userinput"><code>*</code></strong>·(asterisk)</span></dt><dd><p>similar·to·<code·class="literal">{0,}</code>,·find·any·number·of·occurrences.</p></dd><dt><span·class="term"><strong·class="userinput"><code>+</code></strong>·(plus·sign)</span></dt><dd><p>similar·to·<code·class="literal">{1,}</code>,·at·least·1·occurrence.</p></dd><dt><span·class="term"><strong·class="userinput"><code>?</code></strong>·(question·mark)</span></dt><dd><p>similar·to·<code·class="literal">{0,1}</code>,·zero·or·1·occurrence.</p></dd></dl></div><p> | 3819 | </p><div·class="variablelist"><dl><dt><span·class="term"><strong·class="userinput"><code>*</code></strong>·(asterisk)</span></dt><dd><p>similar·to·<code·class="literal">{0,}</code>,·find·any·number·of·occurrences.</p></dd><dt><span·class="term"><strong·class="userinput"><code>+</code></strong>·(plus·sign)</span></dt><dd><p>similar·to·<code·class="literal">{1,}</code>,·at·least·1·occurrence.</p></dd><dt><span·class="term"><strong·class="userinput"><code>?</code></strong>·(question·mark)</span></dt><dd><p>similar·to·<code·class="literal">{0,1}</code>,·zero·or·1·occurrence.</p></dd></dl></div><p> |
| |
3820 | </p><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp157095480"></a>Greed</h3></div></div></div><p>When·using·quantifiers·with·no·maximum,·regular·expressions | 3820 | </p><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp157083192"></a>Greed</h3></div></div></div><p>When·using·quantifiers·with·no·maximum,·regular·expressions |
3821 | defaults·to·match·as·much·of·the·searched·string·as·possible,·commonly | 3821 | defaults·to·match·as·much·of·the·searched·string·as·possible,·commonly |
3822 | known·as·<span·class="emphasis"><em>greedy</em></span>·behavior.</p><p>Modern·regular·expression·software·provides·the·means·of | 3822 | known·as·<span·class="emphasis"><em>greedy</em></span>·behavior.</p><p>Modern·regular·expression·software·provides·the·means·of |
3823 | <span·class="quote">“<span·class="quote">turning·off·greediness</span>”</span>,·though·in·a·graphical | 3823 | <span·class="quote">“<span·class="quote">turning·off·greediness</span>”</span>,·though·in·a·graphical |
3824 | environment·it·is·up·to·the·interface·to·provide·you·with·access·to | 3824 | environment·it·is·up·to·the·interface·to·provide·you·with·access·to |
3825 | this·feature.·For·example·a·search·dialog·providing·a·regular | 3825 | this·feature.·For·example·a·search·dialog·providing·a·regular |
3826 | expression·search·could·have·a·check·box·labeled·<span·class="quote">“<span·class="quote">Minimal | 3826 | expression·search·could·have·a·check·box·labeled·<span·class="quote">“<span·class="quote">Minimal |
3827 | matching</span>”</span>·as·well·as·it·ought·to·indicate·if·greediness·is·the | 3827 | matching</span>”</span>·as·well·as·it·ought·to·indicate·if·greediness·is·the |
3828 | default·behavior.</p></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp157098168"></a>In·context·examples</h3></div></div></div><p>Here·are·a·few·examples·of·using·quantifiers</p><div·class="variablelist"><dl><dt><span·class="term"><strong·class="userinput"><code>^\d{4,5}\s</code></strong></span></dt><dd><p>Matches·the·digits·in·<span·class="quote">“<span·class="quote">1234·go</span>”</span>·and·<span·class="quote">“<span·class="quote">12345·now</span>”</span>,·but·neither·in·<span·class="quote">“<span·class="quote">567·eleven</span>”</span> | 3828 | default·behavior.</p></div><div·class="sect2"><div·class="titlepage"><div><div><h3·class="title"><a·name="idp157085880"></a>In·context·examples</h3></div></div></div><p>Here·are·a·few·examples·of·using·quantifiers</p><div·class="variablelist"><dl><dt><span·class="term"><strong·class="userinput"><code>^\d{4,5}\s</code></strong></span></dt><dd><p>Matches·the·digits·in·<span·class="quote">“<span·class="quote">1234·go</span>”</span>·and·<span·class="quote">“<span·class="quote">12345·now</span>”</span>,·but·neither·in·<span·class="quote">“<span·class="quote">567·eleven</span>”</span> |
3829 | nor·in·<span·class="quote">“<span·class="quote">223459·somewhere</span>”</span></p></dd><dt><span·class="term"><strong·class="userinput"><code>\s+</code></strong></span></dt><dd><p>Matches·one·or·more·whitespace·characters</p></dd><dt><span·class="term"><strong·class="userinput"><code>(bla){1,}</code></strong></span></dt><dd><p>Matches·all·of·<span·class="quote">“<span·class="quote">blablabla</span>”</span>·and·the·<span·class="quote">“<span·class="quote">bla</span>”</span>·in·<span·class="quote">“<span·class="quote">blackbird</span>”</span>·or·<span·class="quote">“<span·class="quote">tabla</span>”</span></p></dd><dt><span·class="term"><strong·class="userinput"><code>/?></code></strong></span></dt><dd><p>Matches·<span·class="quote">“<span·class="quote">/></span>”</span>·in·<span·class="quote">“<span·class="quote"><closeditem/></span>”</span>·as·well·as | 3829 | nor·in·<span·class="quote">“<span·class="quote">223459·somewhere</span>”</span></p></dd><dt><span·class="term"><strong·class="userinput"><code>\s+</code></strong></span></dt><dd><p>Matches·one·or·more·whitespace·characters</p></dd><dt><span·class="term"><strong·class="userinput"><code>(bla){1,}</code></strong></span></dt><dd><p>Matches·all·of·<span·class="quote">“<span·class="quote">blablabla</span>”</span>·and·the·<span·class="quote">“<span·class="quote">bla</span>”</span>·in·<span·class="quote">“<span·class="quote">blackbird</span>”</span>·or·<span·class="quote">“<span·class="quote">tabla</span>”</span></p></dd><dt><span·class="term"><strong·class="userinput"><code>/?></code></strong></span></dt><dd><p>Matches·<span·class="quote">“<span·class="quote">/></span>”</span>·in·<span·class="quote">“<span·class="quote"><closeditem/></span>”</span>·as·well·as |
3830 | <span·class="quote">“<span·class="quote">></span>”</span>·in·<span·class="quote">“<span·class="quote"><openitem></span>”</span>.</p></dd></dl></div></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="regex-patterns.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="assertions.html">Next</a></td></tr><tr><td·class="prevCell">Patterns </td><td·class="upCell">Regular·Expressions</td><td·class="nextCell"> Assertions</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME><FILENAME·filename="assertions.html"><html><head><title>Assertions</title><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-default.css"><link·rel="stylesheet"·ty·✂ | 3830 | <span·class="quote">“<span·class="quote">></span>”</span>·in·<span·class="quote">“<span·class="quote"><openitem></span>”</span>.</p></dd></dl></div></div></div></div><div·id="footer"><div·class="navCenter"><table·class="navigation"><tr><td·class="prevCell"><a·accesskey="p"·href="regex-patterns.html">Prev</a></td><td·class="upCell"><a·accesskey="h"·href="index.html">Contents</a></td><td·class="nextCell"><a·accesskey="n"·href="assertions.html">Next</a></td></tr><tr><td·class="prevCell">Patterns </td><td·class="upCell">Regular·Expressions</td><td·class="nextCell"> Assertions</td></tr></table></div><div·id="footer_text">Would·you·like·to·make·a·comment·or·contribute·an·update·to·this·page?<br>Send·feedback·to·the·<a·href="mailto:kde-doc-english@kde.org"·class="footer_email">KDE·Docs·Team</a></div></div></div></body></html></FILENAME><FILENAME·filename="assertions.html"><html><head><title>Assertions</title><link·rel="stylesheet"·type="text/css"·href="help:/common/kde-default.css"><link·rel="stylesheet"·ty·✂ |
3831 | match·only·under·certain·controlled·conditions.</p><p>An·assertion·does·not·need·a·character·to·match,·it·rather | 3831 | match·only·under·certain·controlled·conditions.</p><p>An·assertion·does·not·need·a·character·to·match,·it·rather |
3832 | investigates·the·surroundings·of·a·possible·match·before·acknowledging | 3832 | investigates·the·surroundings·of·a·possible·match·before·acknowledging |
3833 | it.·For·example·the·<span·class="emphasis"><em>word·boundary</em></span>·assertion·does | 3833 | it.·For·example·the·<span·class="emphasis"><em>word·boundary</em></span>·assertion·does |
3834 | not·try·to·find·a·non·word·character·opposite·a·word·one·at·its | 3834 | not·try·to·find·a·non·word·character·opposite·a·word·one·at·its |
3835 | position,·instead·it·makes·sure·that·there·is·not·a·word | 3835 | position,·instead·it·makes·sure·that·there·is·not·a·word |