Re:Syntax highlighting, auto complete and more within Python...
by necubi on Thursday July 22, 2010 @03:17PM
(#1539246)
Is there anything comparable for Ruby? I've looked for a nicer irb in the past, but found nothing. Might be a good weekend project.
[ Parent
| on HN ]
Re:Syntax highlighting, auto complete and more within Python...
by guns on Thursday July 22, 2010 @04:12PM
(#1539402)
For autocompletion add
require 'irb/completion'
to your ~/.irbrc. If you want auto-indentation: IRB.conf[:AUTO_INDENT] = true
If you're a Vim user, you can edit code inside of a Vim buffer with the interactive_editor gem: http://vimcasts.org/episodes/running-vim-within-irb/
or for a more SLIMEy experience, you can try ScreenShell, which allows you to send code from Vim in one GNU Screen window to another running irb, or the interpreter of your choice. http://news.ycombinator.com/item?id=1098876
If you just want to stick to improving the irb experience, the Pickaxe book has a good section on customizing irb: http://ruby-doc.org/docs/ProgrammingRuby/html/irb.html
Re:Syntax highlighting, auto complete and more within Python...
by counter_ on Thursday July 22, 2010 @06:20PM
(#1539729)
* wirble: for syntax highlightning
* bond: for more advanced autocompletion
* utilitybelt: for pastebin-like commands
* sketches: for editing and evaluating code easily
* boson: command framework for creating libraries of commands to be loaded as needed
* hirb: framework for associating views per class
Re:Syntax highlighting, auto complete and more within Python...
by jcapote on Thursday July 22, 2010 @03:36PM
(#1539297)
Check this out: http://sketches.rubyforge.org/