Highlight matching ruby block when cursor is on the following keywords:
end
, elsif
, else
, when
rescue
and ensure
.
ctrl-g b
(Note that: ctrl-g and then press 'b' quickly) to go to matching ruby block start line when Atom points the cursor to above keywords.Enable the language-ruby
package.
You can change behavior to highlight block by settings menu.
Highlighting line and bottom panel are enable by default.
If you want to change default highliting color, just add styles with preference for color like below into styles.less
.
:host, atom-text-editor, atom-text-editor::shadow {.line-number.ruby-block-highlight {background-color: red;}.highlights {.ruby-block-highlight .region {background-color: red;}}}
Porting the features of juszczakn's great Emacs Ruby Block Mode to Atom.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.