Loading

OpenSCAD Editor (node-webkit)

by uminded, published

OpenSCAD Editor (node-webkit) by uminded Jan 26, 2013

Description

Project dropped in favor of a better multi-platform choice:
http://www.thingiverse.com/thing:119350

This is my version of a simple OpenSCAD editor.

I run Linux and all of the current editors are for Windows or OSX. I decided to use node-webkit and CodeMirror Editor to make an all systems compatible editor.

Recent Comments

view all
Very true! Unfortunately Vim has a larger learning curve than OpenSCAD...
A conversation on editors for Linux is never complete until someone recommends Vim :). Consider it done. github.com/vim-scripts/openscad.vim
Oops I always assumed it was multi-platform.

I have not used this but you may want to try it under wine;

code.google.com/p/npp-installer/

Liked By

view all

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag. Print Thing Tag

Instructions

Goto my Github page for the latest downloads and updates: https://github.com/iceblu3710/OpenSCAD_Editor

Features:

  • Available on Linux, Mac OSX and Windows
  • Autoformatting, Block Comment/Uncomment
  • Code folding
  • Syntax highlighting (In progress)
  • Find & Replace (In progress, needs UI)
  • Autocomplete (Implementation only)

Instructions:

  • Download one of the node-webkit prebuilt binaries (v0.4.0 — Jan 18, 2013)
  • Open/Install OpenSCAD and in the menu select View -> Hide Editor and Design -> Automatic Reload and Compile
  • Unzip the node-webkit binary and cut/copy the nw.exe and nw.pak files into the OpenSCAD editor folder
  • Run nw.exe and open a .scad file in both the editor AND in OpenSCAD itself
  • Whenever you make changes in the editor press F5 or Ctrl-S and OpenSCAD will render the changes
A conversation on editors for Linux is never complete until someone recommends Vim :). Consider it done. github.com/vim-scripts/openscad.vim
Very true! Unfortunately Vim has a larger learning curve than OpenSCAD...
You may like notepad-plus-plus.org/ with thingiverse.com/thing:15363 (or thingiverse.com/thing:26853 who like a white background).
OpenSCAD/Notepad++ Language File (including useage guide)
UPDATED OpenSCAD/Notepad++ Language File Bluish on White background
The only thing I miss about Windows is Notepad++ but my household uses Linux so that's why I wrote this app. Thanks for the look!
Oops I always assumed it was multi-platform.

I have not used this but you may want to try it under wine;

code.google.com/p/npp-installer/
While Chrome, Safari and other are WebKit browsers they do not have the system calls and capabilities of node.js nativly as this is usually a server package. (Node.js can do system/socket calls)

Google webcast on their way of supporting node.js:
https://developers.google.com/live/shows/7320022-8001/

I chose to use node-webkit (see the binary links in the instructions section) because it is essentially a stripped down self contained server with chromium at its heart. It has multimedia accelerations, HTML5 support and even openGL acceleration.

If anybody knows of a way to remove the node-webkit binary requirement that would be awesome as its a bit of a large download (but runs portably so no installing is needed)
Any thing I need to do to get it to work in Chrome on Windows7? Page is up but can get no buttons to work.
Top