Corrected Geany Configuration for OpenSCAD Editing (+ shell script installer)
Description
(based on [Geany Configuration for OpenSCAD Editing](https://www.thingiverse.com/thing:263620) by [cobra18t](https://www.thingiverse.com/cobra18t) March 05, 2014) ## Differences in Poikilos remix - Store settings in AppData (or ~/.config) so that the system-wide configuration remains intact and the new configuration isn't undone when Geany is updated. - The number of lines is reduced so that unrelated system-wide defaults are not overwritten (as per a comment on the original thing). - The correct subdirectory "filedefs" is used under the geany application data so that the installation works (as per a comment on the original thing). ## Features - Auto-Completion - Syntax Highlighting - Collapsible Outline levels - Line Numbering - Automatic Tabbing - Parenthesis/Bracket Completion - Search and Replace - Block Tabbing using the tab key ## Requires - Geany - OpenSCAD (only to preview/render your scad files) ## Install ### Get the files - uploads_42_3c_3d_83_43_filetypes.OpenSCAD.conf - geany-openSCAD.sh (not required for the "Install on Windows" steps) (ignore the dummy file--it is there because Thingiverse requires a model file. Otherwise it says, "A Thing must have at least one file of type: stl, obj, thing, scad, amf, dae, 3ds, x3d, blend, ply, dxf, ai, svg, cdr, ps, eps, epsi, sch, brd") ### Install on GNU+Linux systems - Complete the steps under "Get the Files" above. - Open a Terminal - `cd` to the directory (such as via `cd ~/Downloads`) - Run `bash geany-openSCAD.sh`. ### Install on Windows - Complete the steps under "Get the Files" above. - Right-click start, click Run - Paste "%APPDATA%\geany" then press enter (If it has an error, install and run Geany then close it then try this step again). - If there is no "filedefs" folder, create it using the small New Folder button. - Save the included uploads_42_3c_3d_83_43_filetypes.OpenSCAD.conf file to - Open Geany - Click "Tools", "Configuration files", "filetype_extensions.conf" - Paste the following: ``` [Extensions] OpenSCAD=*.scad; # Editing groups requires restarting Geany. [Groups] Script=OpenSCAD ``` - Save the file. - Exit Geany & reopen it. - Close & reopen any scad files you had open (The file type "None" would still be set unless opened after the new file type was installed). ## Use - Arrange both OpenSCAD and Geany on your screen/s so that both can be seen at once. - Open your scad file in both editors. - 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. ## License Copyright (c) 2014 cobra18t, 2022 Poikilos [Creative Commons Attribution-ShareAlike 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/) (CC BY-SA 3.0)
Statistics
Likes
1
Downloads
0