I wanted a more powerful editor for OpenSCAD scripts that was natively cross platform (i.e. no WINE use). After seeing Justblair's thing:15363, I decided to get something working on my text editor of choice, Geany.
Check the instructions...
This gives you:
Collapsible Outline levels
Search and Replace
Block Tabbing using the tab key.
I assume you already have OpenSCAD and Geany
Copy filetypes.OpenSCAD.conf to the Geany directory with all the other filetype files.
-Windows: C:/Program Files/Geany/data
Copy filetype_extensions.conf to the same folder replacing the one there or edit the one there with the two lines shown in the fourth attached image.
Open OpenSCAD, Create a new file and save it.
In the Design menu select Automatic Reload and Compile
In the View menu select Hide editor
Leaving OpenSCAD running, now find your newly created .scad file in a file explorer, right hand click on it and select Open with Geany
Visit the Edit > Preferences menu in Geany and change the preferences for auto completion, indentation, and display as shown in attached images 5-7.
Arrange both OpenSCAD and Geany on your screen/s so that both can be seen at once.
Edit your .scad file in Geany. Each time you save the file (CTRL+S) you will see that OpenSCAD will recompile the object. With the updated filename_extensions.conf file, .scad files should be automatically recognized and the syntax will be highlighted appropriately. You can get other color themes for Geany.
- Enjoy all the advanced text editing features of Geany as well as syntax highlighting of your code!!!