Choosing a Text Editor
You can define the text editor in which GeoDict opens macros when clicking Edit in the Macro Execution Control.
To define another text editor as the default text editor, open GeoDict and select Settings → Settings … from the menu bar.
In the section Text Editor, at the bottom of the Settings dialog in the General tab, click Browse to find the path to the executable for the desired text editor.
Click Save & Close to apply the editor change. The choice is automatically saved into the start-up settings of GeoDict.
The next time the Edit button in the Macro Execution Control dialog box is clicked, the macro file is opened for editing in the selected text editor.
For other editors, browse for or enter the path to the desired editor.
Editors available for Windows
- Notepad is a simple text-editor provided during the installation of Windows. The Notepad text editor is called Editor in the Windows German edition. Syntax highlighting is not available and when opening files from other platforms (e.g. Linux), although the file is not corrupted, the commands are not displayed in easily readable lines.
- WordPad, another Windows built-in editor, is a good alternative for users who seldom edit macros. Files from Linux platforms are also displayed correctly. However, syntax highlighting is not available, and all formatting effects are removed when saving and closing the file. Files must be saved in .py and not in .py.rtf format.
- Notepad++ is recommended. The free source code editor Notepad++ is the most comfortable alternative for Windows systems. Python syntax is highlighted and although there is no syntax highlighting for GMC macro files, their syntax is similar to C and HTML conventions and switching to C-syntax highlighting (Language ® C ® C++ in Notepad++ menu bar) helps improving readability of the files. You can also define his/her own syntax highlighting. Notepad++ is also included in the GeoDict-Tools installer.
Editors available for Linux
- gedit is provided with Ubuntu. Python syntax is highlighted.
- Notepadqq is the Linux version of Notepad++.
- PyCharm is not only an editor but an integrated development environment. While it can be very useful for experts, it is not recommended for beginners.