Click the link to open each section
OpenSCAD syntax highlights in BBEdit/TextWrangler
- Open OpenSCAD
- Select View>Hide Editor
- Select Design>Automatic Reload and Compile
- Select your BBEdit or TextWrangler
- If you're using BBEdit or TextWrangler download the .plist file from
:
OpenSCAD and BBedit or TextWrangler - Install the .plist file in
~/Library/Application Support/your_app/Language Modules.
You might have to create the Language Modules folder. - Restart BBEdit or TextWrangler.
TBuser's Textmate Bundle
- To find the latest version of member TBuser's TextMate Bundle click here.
- Navigate to ~/Library/Application Support/TextMate/bundles. If this directory does not exist, create it.
- If the folder downloaded as openscad.tmbundle-master rename it openscad.tmbundle.
- Place this new file in the ~/Library/Application Support/TextMate/bundles directory.
- Open OpenSCAD
- Select View>Hide Editor
- Select Design>Automatic Reload and Compile
- Open TextMateand navigate to your OpenSCAD file.
- There is some handy stuff in the bundle. Select some code and press CTRL+click or open a script with a several of modules and press cmd+shift+T .
Using Sublime Text 2
- Download and install Sublime Text 2.
- Download the latest version of member TBuser's TextMate Bundle
- Open OpenSCAD.
- Select View>Hide Editor
- Select Design>Automatic Reload and Compile
- Save the OpenSCAD file with a name.
- On a Mac locate the Packages directory inside the application.
Create an OpenSCAD directory and place the contents of the the following folders from the TextMate Bundle inside the directory:- Preferences
- Snippets
- Syntaxes
On Windows locate the Packages directory inside the AppData.
Create an OpenSCAD directory and place the contents of the the following folders from the TextMate Bundle inside the directory:- Preferences
- Snippets
- Syntaxes
- Open Sublime Text 2 and navigate to the scad file you saved.
- Under View selectSyntax and then OpenSCAD
- Under Preferences pick Color Scheme and select a color scheme.
- Write your code. When you save your program, it will automatically update in OpenSCAD.