Found this util today:
http://eigenclass.org/hiki.rb? Enhanced+xmp+code+evaluation+and+annotation
You feed it code and it puts the output in comments, i.e.
a = 5 a # =>
would return a = 5 a # => 5
I set up a command to save and run this filter to replace the document and bound it to F10. Also a command to take the selected text, add ".inspect # =>" and push it to the clipboard.
Anyone interested? ___________________ Ben Jackson Diretor de Desenvolvimento
+55 (21) 9997-0593 ben@incomumdesign.com http://www.incomumdesign.com
On 24/11/2005, at 1:38, Benjamin Jackson wrote:
[...] Also a command to take the selected text, add ".inspect # =>" and push it to the clipboard.
Have a look at Ruby -> Execute Line as Ruby (ctrl-shift E, which is unscoped, so it works in all contexts).
It will execute the current line or selection via Ruby and insert the result (either using .to_s or .inspect, depending on the result type).