<< Click to Display Table of Contents >> Using SmartText |
Exactly like in the word processor TextMaker, you can setup SmartText entries in BasicMaker’s script editor. This feature can save you a lot of typing: You can define entries for frequently needed names or source code fragments and then call them up quickly and easily.
For example, you could create a SmartText entry named "tma" containing "tm.Application.ActiveDocument". Later, just type "tma" in the script and press the space bar or a punctuation character. Immediately, "tma" will be replaced with "tm.Application.ActiveDocument".
This can save you lot of time otherwise spent on typing.
Creating SmartText entries
To create, for example, a SmartText entry with the name "tma" containing "tm.Application.ActiveDocument", proceed as follows:
1.Select the ribbon command Home | Insert group | SmartText.
2.Click on the New button to create a new SmartText entry.
3.Give the SmartText entry a name ("tma" in our example). Then click on OK.
4.Type in the text for the SmartText entry in the large input field ("tm.Application.ActiveDocument" in our example). Click on Save.
5.Leave the dialog box by clicking Close.
The SmartText entry has now been created. Later, the SmartText entry can be called up by using the specified name.
Inserting SmartText entries
Calling out SmartText entries is simple: In the script, type in the name of the SmartText entry ("tma" in our example) and then press the space bar, the Enter key or a punctuation character. Immediately, "tma" will be replaced by the content of the SmartText entry, in our example "tm.Application.ActiveDocument".
Note: If this does not work, you have disabled the option Expand SmartText entries. Select the ribbon command File | Options, switch to the General tab and activate this option again.
Alternatively, you can insert the element using a dialog box with the ribbon command Home | SmartText, selecting the desired element and then clicking the Insert button.
Editing SmartText entries
With the ribbon command Home | Insert group | SmartText you can edit the already created text modules later:
▪Creating a new SmartText entry
To create a new SmartText entry, click the New button (see above). |
▪Deleting an entry
To delete a text module, select it from the Text modules list and click the Deletebutton. |
▪Renaming an entry
To change the name of an entry, select it from the list, click on Rename and enter a new name. |
▪Editing an entry
To edit an entry, select it from the list and then click in the large input field. Now you can modify the content of the SmartText entry. |
▪Inserting an entry
To insert a SmartText entry into the script, select it from the list and click on the Insert button. |
▪Close dialog box
You can close the dialog box with the Close button. |