web-apps/apps/documenteditor/main/resources/help/en/HelpfulHints/Search.htm
Julia Radzhabova ef1fc5d703 Update help
2022-07-11 14:36:26 +03:00

166 lines
5.8 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Search and Replace Function</title>
<meta charset="utf-8" />
<meta name="description" content="The description of the document search and replace function in Document Editor" />
<link type="text/css" rel="stylesheet" href="../editor.css" />
<link type = "text/css" rel = "stylesheet" href = "../../images/sprite.css" />
<script type="text/javascript" src="../callback.js"></script>
<script type="text/javascript" src="../search/js/page-search.js"></script>
</head>
<body>
<div class="mainpart">
<div class="search-field">
<input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)">
</div>
<h1>Search and Replace Function</h1>
<p>To search for the required characters, words or phrases used in the currently edited document, click the <span class="icon icon-searchicon"></span> icon situated on the left sidebar of the <a href="https://www.onlyoffice.com/en/document-editor.aspx" target="_blank" onclick="onhyperlinkclick(this)"><b>Document Editor</b></a> or use the <em>Ctrl+F</em> key combination.</p>
<p>The <b>Find and Replace</b> window will open:</p>
<p><img alt="Find and Replace Window" src="../images/search_window.png" /></p>
<ol>
<li>Type in your inquiry into the corresponding data entry field.</li>
<li>
Specify search parameters by clicking the <div class = "icon icon-search_options"></div> icon and checking the necessary options:
<ul>
<li><b>Case sensitive</b> - is used to find only the occurrences typed in the same case as your inquiry (e.g. if your inquiry is 'Editor' and this option is selected, such words as 'editor' or 'EDITOR' etc. will not be found). To disable this option, click it once again.</li>
<li><b>Highlight results</b> - is used to highlight all found occurrences at once. To disable this option and remove the highlight, click the option once again.</li>
</ul>
</li>
<li>
Click one of the <b>arrow buttons</b> at the bottom right corner of the window.
The search will be performed either towards the beginning of the document (if you click the <div class = "icon icon-searchupbutton"></div> button) or towards the end of the document (if you click the <div class = "icon icon-searchdownbutton"></div> button) from the current position.
<p class="note"><b>Note</b>: when the <b>Highlight results</b> option is enabled, use these buttons to navigate through the highlighted results.</p>
</li>
</ol>
<p>The first occurrence of the required characters in the selected direction will be highlighted on the page. If it is not the word you are looking for, click the selected button again to find the next occurrence of the characters you entered.</p>
<p><b>To replace</b> one or more occurrences of the found characters, click the <b>Replace</b> link below the data entry field or use the <em>Ctrl+H</em> key combination. The <b>Find and Replace</b> window will change:</p>
<p><img alt="Find and Replace Window" src="../images/search_replace_window.png" /></p>
<ol>
<li>Type in the replacement text into the bottom data entry field.</li>
<li>Click the <b>Replace</b> button to replace the currently selected occurrence or the <b>Replace All</b> button to replace all the found occurrences.</li>
</ol>
<p>To hide the replace field, click the <b>Hide Replace</b> link.</p>
<p><b>Document Editor</b> supports search for special characters. To find a special character, enter it into the search box.</p>
<details class="details-example">
<summary>The list of special characters that can be used in searches</summary>
<table>
<tr>
<td><b>Special character</b></td>
<td><b>Description</b></td>
</tr>
<tr>
<td>^l</td>
<td>Line break</td>
</tr>
<tr>
<td>^t</td>
<td>Tab stop</td>
</tr>
<tr>
<td>^?</td>
<td>Any symbol</td>
</tr>
<tr>
<td>^#</td>
<td>Any digit</td>
</tr>
<tr>
<td>^$</td>
<td>Any letter</td>
</tr>
<tr>
<td>^n</td>
<td>Column break</td>
</tr>
<tr>
<td>^e</td>
<td>Endnote</td>
</tr>
<tr>
<td>^f</td>
<td>Footnote</td>
</tr>
<tr>
<td>^g</td>
<td>Graphic element</td>
</tr>
<tr>
<td>^m</td>
<td>Page break</td>
</tr>
<tr>
<td>^~</td>
<td>Non-breaking hyphen</td>
</tr>
<tr>
<td>^s</td>
<td>Non-breaking space</td>
</tr>
<tr>
<td>^^</td>
<td>Escaping the caret itself</td>
</tr>
<tr>
<td>^w</td>
<td>Any space</td>
</tr>
<tr>
<td>^+</td>
<td>Em dash</td>
</tr>
<tr>
<td>^=</td>
<td>En dash</td>
</tr>
<tr>
<td>^y</td>
<td>Any dash</td>
</tr>
</table>
</details>
<details class="details-example">
<summary>Special characters that may be used for replacement too:</summary>
<table>
<tr>
<td><b>Special character</b></td>
<td><b>Description</b></td>
</tr>
<tr>
<td>^l</td>
<td>Line break</td>
</tr>
<tr>
<td>^t</td>
<td>Tab stop</td>
</tr>
<tr>
<td>^n</td>
<td>Column break</td>
</tr>
<tr>
<td>^m</td>
<td>Page break</td>
</tr>
<tr>
<td>^~</td>
<td>Non-breaking hyphen</td>
</tr>
<tr>
<td>^s</td>
<td>Non-breaking space</td>
</tr>
<tr>
<td>^+</td>
<td>Em dash</td>
</tr>
<tr>
<td>^=</td>
<td>En dash</td>
</tr>
</table>
</details>
</div>
</body>
</html>