Ruby Code Editor

Availability: Free
Latest Version: 2.0
Release Date: 04/12/2011
Plugin Author: Alex Schreyer
Works in: Win & Mac
With SketchUp Versions: v.8 M2, v.8 M1, v.8, v.7
Plugin ID: 22

Visit Website

Download

VN:F [1.9.17_1161]
Rating: 5.0/5 (1 vote cast)

This code editor offers an easy and visually appealing way to create and modify Ruby scripts directly within SketchUp. These scripts can then be used to create geometry, add functionality or add data within the SketchUp 3D modeling environment. The SketchUp Ruby API provides a complete set of functions to automatize SketchUp in many ways or create scripted, computational geometry.

I created this editor mainly for two reasons: One is that when I write code, I permanently need to look up documentation. To make this easier, I added a bunch of reference webpages to a browser in a tab. Also, a dropdown above the editor contains some common code snippets that can be inserted at the current cursor position.

The other reason is that I wanted it to behave a bit more like a real code editor, so I added a bit of jQuery magic to make it look good and have some additional features. I also added the excellent CodeMirror 2.0 syntax highlighting engine. This provides the editor with multi-language code highlighting, correct TAB control, bracket matching and many more features. Just load the plugin and give it a try to see for yourself!

This editor was originally an extension of Jim Folz’s Web Console plugin.

Ruby Code Editor, 5.0 out of 5 based on 1 rating

Changelog:

Version 2.0 (4/12/2011)
- Switched editor to use CodeMirror – sooo much better!
- Added code coloring for several languages (Ruby, HTML, CSS, JavaScript, XML, C/Java)
- Can handle large files easily
- Added bracket matching
- Added coloring changer
- Disabling run button if code is not Ruby
- Added some more options
- Added option to disable single undo
- Added color coding for SU classes
- Fixed problem with loading/saving slashes in files
- Updated jQuery and jQuery UI
- Results window is now continuous and scrolls
- Added some more code snippets to dropdown
- Added toolbar item
- Moved menu item to “Windows” menu
- Added settings file for modifications
- Added code printing
Version 1.2 (4/13/2010)
- Updated jQuery UI to v. 1.8
- Added object explorer button to show current selection details
- Added attribute explorer button for selection attributes
- Added button to show Ruby console
- Modified code a bit
- Changed buttons to images for space reasons
- Fixed keyboard access (Alt+…)
- Added pages to browser: Edges to Rubies, Ruby core and Google search
- Added basic update checking
- Enabled browser buttons again – use at your own risk…
- Waiting icon shown while code executes
Version 1.1.2 (3/8/2010)
- Removed nav buttons also for IE because they disabled code execution after a while
- Renamed some code elements
- Added wrapper module
Version 1.1.1 (2/25/2010):
- Safari-related fixes (cookies, text insert, removed back button)
Version 1.1 (2/22/2010)
- Changed webdialog internal name for compatibility
- Better looking dropdowns under Windows
- Fixed save filename preselect problem
- Better code execution and error catching (thanks to Dan Rathbun)
- Faster file loading for large files
- Added cookie-based saving of preferences (expires after 365 days)
- Added changeable user interface
- Modified some references
Version 1.0 (2/3/2010)
- First release

Bookmark the permalink.