support for tabs :/ Argh! Finding the number_of_tabs_before_cursor is pretty stinkin tricky. Allan, any chance you can supply us with environment variables like: actual_caret_position, text_before_caret & text_after_caret. That would really make this stuff easier Changed: U trunk/Support/lib/codecompletion.rb U trunk/Support/lib/codecompletion_test.rb