Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > ANN: InstantERB

Reply
Thread Tools

ANN: InstantERB

 
 
Jack Christensen
Guest
Posts: n/a
 
      03-27-2007
Inspired by Florian Gross's Execute as Ruby Code Service for OS X
(http://www.ruby-forum.com/topic/102680), I have created InstantERB. It
uses the incredibly useful AutoHotKey utility. It will run any selected
text through ERB.

For example, selecting the following block of text and hitting <Windows>+I:

The value of pi is approximately <%= Math:I %>.

% 3.times do |i|
<%= i %>
% end

will yield:

The value of pi is approximately 3.14159265358979.

0
1
2


Installation instructions:
Install AutoHotKey (http://www.autohotkey.com/)
Download http://www.jackchristensen.com/file_...InstantERB.ahk

You can either run InstantERB.ahk directly or copy and paste it into
your own AutoHotKey file.


Jack Christensen

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments