1Ci Support Help Center home page
Submit a request
Sign in
  1. 1Ci Support
  2. 1C:Enterprise 8.3.19 User Manual
  3. Appendix 2. Text editor

Appendix 2. Text editor 

  • Appendix 2. Text editor
    • Appendix 2. Text editor 

<< Prev   Next >>

The 1C:Enterprise text editor provides all the basic text editing functions. The text editor allows you to perform operations on text fragments, as well as search and replace. Since operations in all the text editors are similar, in this Appendix we describe only those features of the text editor that are specific to 1C:Enterprise.

Editing a text document includes the following steps:

  • Create or open a document
  • Type and edit text
  • Save the text
  • Print the text (optional)

These steps are described below in detail.

2.1. Creating and opening text documents

To create a text document, on the main menu, click File – New. Then click Text document and click OK. This opens a blank document in the text editor.

To open a text document, click File – Open. This opens the standard file selection dialog box.

In this dialog box, select a text file. You can select the file format in the File type field.

Attention!  If the document that you open is Read-only, you cannot edit it. To learn whether it is read-only, on the main menu, click Edit – Properties. Then, in the list of properties, find the Status line. If it says Text open for reading, the document is read-only. If the text is not Read-only, the Status line reads Text open for writing.

You can create or open multiple documents, each in a new window.

2.2. Selecting text document extensions

The Text item of the main menu contains commands for selecting a text document extension.

Available values include Text, Text template, and HTML. Depending on the selected value, the text editor provides options specific for this value.

The default extension (when you create a new document) is Text.

For information about editing 1C:Enterprise script modules in the text editor, see 1C:Enterprise 8.3. Developer Guide.

2.3. Entering and editing text

To enter a text, simply type it. 

To view the text document size (the number of characters and lines) and whether the document is read-only, on the main menu, click Edit – Properties.

2.3.1. Moving the cursor

When editing text, you can move the cursor in the standard manner.

2.3.2. Going to line by number

To go to a specific line in a text document, right-click anywhere in the document, click Go to Line, enter the line number, and click Go.

2.3.3. Using bookmarks

You can mark any text line with a bookmark. Then, you can quickly navigate between the bookmarks.

To set a bookmark, move the cursor to the line that you want to mark and then, on the main menu, click Text – Set/clear bookmark. The resulting bookmark is displayed as a blue square in the left border of the editor area.

To remove a bookmark, move the cursor to the bookmark line and then, on the main menu, click Text – Set/Clear Bookmark.

To switch between the bookmarks, on the main menu, click Text – Next Bookmark, Text – Previous Bookmark. When you reach the end or beginning (depending on the search direction), the search continues from the beginning or end of the document.

To delete all bookmarks, on the main menu, click Text – Clear all bookmarks. When you close a document, all its bookmarks are removed.

2.3.4. Selecting text fragments

You can select text fragments.

To select the entire text, on the main menu, click Edit – Select All.

To select a single word, move the cursor to this word and press Ctrl + W.

2.3.5. Operations with selected text

You can move, copy, or delete selected text. 

You can increase or decrease indents in a selected text fragment. Select one or several text lines (if you select a single line, you have to select the end of the line; if you select multiple lines, it is enough to select only a part of each line) and then, on the main menu, click Text – Block – Increase Indent or Text – Block – Decrease Indent. Increasing an indent adds a tab character to each line. Decreasing an indent removes a tab character or an equivalent number of spaces from each line.

2.3.6. Deleting text

You can delete text in the standard manner.

2.3.7. Adding page breaks

To add a page break, on the main menu, click Text – End of Page. The page break is displayed as § (section character). When a document is printed, a new page begins at each page break.

2.3.8. Canceling changes

If an error is made during the editing process, you can automatically revert to the original text. To cancel an action, click Edit - Cancel.

 You can undo the changes multiple times.

To redo an action, on the main menu, click Edit – Redo.

2.3.9. Using search and replacement

You can search for any character sequence and replace it with another character sequence.

Search. To start a search, on the main menu, click Edit – Find. This opens the search dialog box.

Fig. . The search options

In the Find field, enter the search string.

To make the search case-sensitive, select the Match case check box. To find only the whole words, select the Match whole word only check box.

In the Direction pane, specify the search direction: Forward or Backward.

Once you specify the search parameters, click Find. If the specified character sequence is found, it is highlighted.

To continue the search in the Forward direction (regardless of the direction that was specified earlier), on the main menu, click Edit – Find Next, or press F3.

To continue the search in the Backward direction (regardless of the direction that was specified earlier), on the main menu, click Edit – Find Previous, or press Shift + F3.

Attention!  When the search reaches the end of the document, it continues from the beginning and vice versa.

Replacement. To replace a character sequence, on the main menu, click Edit – Replace. The opens the replacement dialog box.

Fig. . The replacement options

In the Find field, enter the search string. In the Replace with field, enter the replacement text.

To make the search case-sensitive, select the Match case check box. To find only the whole words, select the Match whole word only check box.

In the Replace in pane, specify the search range: the selected text, or the entire document.

Once you have specified the search and replacement options, click Find.

If the specified character sequence is found, it is highlighted. To replace the text in that cell, click Replace. Then the search continues.

To replace all the occurrences of the search string, click Replace all.

Attention!  When the replacement reaches the end of the document, it continues from the beginning and vice versa.

2.3.10. Saving text documents

To save a text document, on the main menu, click File – Save. If you are saving the document for the first time, this opens the standard Save As dialog box.

In this dialog box, specify the file name and directory and select the File type.

To save an existing document with a different name, on the main menu, click File – Save As. This opens the standard Save As dialog box. In this dialog box, specify the file name and directory. If the text document has one of the four standard encodings (UTF-8, UTF-16, ANSI, or OEM), it is selected as the default encoding in the Save As dialog box. If the document has a different encoding, the default encoding is UTF-8. When you save a document with a new name, the document with the old name remains on the disk.

2.3.11. Printing text documents

Page setup. In the page setup dialog box, you can select a printer and specify paper size, orientation, and other options. To open the dialog box, on the main menu, click File – Page Setup. This opens the Page Setup dialog box.

Fig. . The page setup dialog box

In the Printer field, select a printer. To open the list of available printers, click the Down Arrow button. You can similarly select the paper size and the paper source.

In the Margins pane, specify the margins. If a text does not fit the page width due to large margins, it is carried over to the next page.

Page placement. In the Page placement field, specify the margin adjustment options for even and odd pages.

  • Do not use. Do not adjust margins.
  • Mirror left. For odd pages, do not adjust the margins. For even pages, swap the left and right margins.
  • Mirror top. For odd pages, do not adjust the margins. For even pages, swap the top and bottom margins.
  • Auto. If the value in the Print on both sides field is No, do not adjust margins. If the value is Rotate left, use the Mirror left option. If the value is Rotate up, use the Mirror top option.

Print on both sides. Specify the options for printing on both sides.

  • No. Print on a single side.
  • Rotate left. Print on both sides for flipping pages from left to right.
  • Rotate up. Print on both sides for flipping pages from bottom to top.
  • Use printer settings. Two-sided printing depends on the settings of the current printer.

Once you have specified the printing options, click OK.

Print preview. Before printing, you can view the document as it will be printed. To do this, select File – Preview.

Printing documents. You can print a document using the standard print setup dialog box or without this dialog box using the current printer and its default options. To open the standard print setup dialog box, use Print menu item.

In this dialog box, select the print parameters (the printer, the page range, and the number of copies) and click OK.

To use the default print options, on the main menu, click File – Print with current settings (Ctrl + Shift + P).

For the list of keyboard shortcuts available in the text editor, see the application help.

2.3.12. Closing text documents

To close a text document, close the text editor (you can simply press Esc). If the document is modified, you are prompted to save the document.

<< Prev   Next >>

© 2020-2021 1C INTERNATIONAL LLC www.1Ci.com Support policy