The Search / Replace
To perform a search / replace of character strings in DiaSCE, you must first
open a file in the Code Editor Window. Then, you right-click on the Code
Editor Window and select "Search..." or select it in the menu bar or the
toolbar. The search window will pop up, where you can enter the search string,
and select the search options. If you have selected text in the Code Editor
Window, the text will appear in the search window.

You have the following options in the search window:
- Search: Use this button to perform a search of the string entered in the
Search string entry.
- Replace: Use this button to replace the searched string with the string
entered in the Replace string entry.
- Replace All: Use this button to replace all the found strings with the text
in the Replace string entry
You can configure the scope of the search, with the following options:
- Search in current file: Select this if you want the search to be performed
in the file that is currently active in the Code Editor Window. When a
coincidence is found, it will be highlighted in the Code Editor Window. You
can look for the next coincidence by pressing Search again in the Search
Window. You can especify 4 options for this kind of search:
- All file: Select this if you want to perform the search from the beginning
of the file.
- From cursor: Select this if you want to perform the search from the current
cursor position to the end of the file.
- Search forwards: self explanatory.
- Search backwards: self explanatory.
- Search in multiple files: Select this if you want the search to be performed
in multiple files. The results will be shown in the Message Window, and if you
click in one of the results the file will be opened in the Code Editor Window,
and the searched text will be highlighted. You can especify 3 options for this
kind of search:
- All Sources: Select this if you want to perform the search in all the files
in the Sources Tree
- All Headers: Select this if you want to perform the search in all the files
in the Headers Tree
- All Others: Select this if you want to perform the search in all the files
in the Others Tree
- Case sensitive search: Select this option if you want the search to be
case-sensitive.
The default search is a case-insensitive search performed in the current file,
from the beginning of the file.
There is a fast search entry in the tools bar. To use it select the text you want to search for in the current file and press Control+F3, or write it in the entry. Press F3 to do a forward search in the current file, and Shift+F3 to do a backward search.