

#Ruby text editor mac code#
Also, a dropdown below the editor contains some common code snippets that can be inserted at the current cursor position. To make this easier, I added a bunch of reference webpages to a browser window. The other reason for this extension is that when I write code, I permanently need to look up documentation. Just load the plugin and give it a try to see for yourself how easy it is to use! This provides the editor with multi-language code highlighting, correct TAB control, find/replace, bracket matching, code folding, and many other features.

I also added the excellent CodeMirror syntax highlighting engine. To accomplish this, I added a bit of jQuery (and jQuery UI) magic to make it look good and have some additional visual features (e.g. The editor had to provide easy access to the Ruby coding environment and behave more like a real code editor. Often this is done in an external editor, but having an internal editor allows for using both scripting and modelling concurrently – depending on your needs. I created this editor mainly for two reasons: One is that I wanted a way to edit and run SketchUp Ruby code right inside of SketchUp’s 3D modeling environment. The SketchUp Ruby API provides an extensive set of functions to automatize SketchUp in many ways or create scripted, computational geometry. These scripts can then be used to create geometry, add functionality or add data within the SketchUp 3D modeling environment. This code editor extension offers an easy-to-use and visually appealing way to write and modify Ruby scripts directly within SketchUp.

An easy-to-use code editor for Ruby right within SketchUp SketchUp Ruby Code Editor Description
