Configuration File Editor - ObjectVision/GeoDMS GitHub Wiki
GeoDMS configuration files can be viewed or edited with an ASCII editor. We advise using an editor supporting parameters for opening a file and positioning a cursor. This makes editing easy; the menu option: edit configuration source in the GeoDMS GUI can immediately show the relevant part of the code (if the setting in the Tools > Options is correctly configured).
We have experience and made language definition files available (highlighting the GeoDMS grammar in different colours) for two editors.
As the development of Crimson Editor has stopped, we advise using Notepad++.
For intensive users, we recommend using Visual Studio Code (https://code.visualstudio.com/download). You can also download a language file (local.geodms-language-0.0.2.zip), and paste it in C:\Users\%USER%\.vscode\extensions. Then open Visual Studio Code, press Ctrl+Shift+X, and you should see the GeoDMS language support.
If you open a .dms file, it should automatically highlight your script according to the language file. If not, choose on the bottom right where it might say plain text, select the GeoDMS language. If the colours of the text highlighting are not visible, pres ctrl+shift+P, select Preferences: Color Theme and select GeoDMS Light.
Furthermore, press Ctrl+, and add between the main accolades:
,"[geodms]": {
"editor.semanticHighlighting.enabled": false,
"editor.bracketPairColorization.enabled": false,
"editor.guides.bracketPairs": false,
"editor.tabCompletion": "onlySnippets",
"editor.snippetSuggestions": "top",
"editor.inlineSuggest.enabled": false,
"editor.wordBasedSuggestions": "off",
"editor.suggestOnTriggerCharacters": true,
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": false
},
"editor.suggestSelection": "first"
}
In the GeoDMS GUI, configure the Local Machine Option to enable jumping to the editor. By setting up, XXX.
To be added!
We recommend using the text editor: Notepad++,. A language file for each software release is available in the same folder as the installed GeoDMS software (%programfiles%/ObjectVision/GeoDmsVersion).
For instructions on how to import the language file into Notepad++ see Setup GeoDMS language file in Notepad++.
To make sure GeoDMS understands where Notepad++ is installed, select your application with the folder button next to the application. The application control shows the path of the editor, e.g.: "C:/Program Files/Notepad++/Notepad++.exe"
Parameters can be set to open the correct file and position in the file. With the button: Set default parameters for editor, the advised settings are set, e.g.: "%F" -n%L for Notepad++. See the documentation for your editor if other parameters are desired.
If you installed Notepad ++ in a different folder than Notepad suggested, adjust the reference to the folder.
If your command-line parameters do not work, see the issue Notepad++ command line parameters not working.
For Crimson Editor (if you still want to use it, use version 3.70.), language definition files can de downloaded here: CE_syntax_files
Copy the contents of the zip file in the indicated folders in the Crimson Editor program files folder.
In the GeoDMS GUI the setting for Settings > local machine options > application should be:
"%ProgramFiles32%\Crimson Editor\cedt.exe"
with as command line parameters:
/L:%L "%F"
If you installed Crimson Editor in a different folder as the folder Crimson Editor suggested, adjust the reference to the folder. If your folder contains spaces, please use the quoted full path as in the NotePad++ example.