• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

ruby-block

Atom highlight matching ruby block
  • #ruby
  • #highlight
  • #jump
hmatsuda
0.3.6 63,348
149
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

ruby-block package Build Status Build status

A screenshot of your package

Highlight matching ruby block when cursor is on the following keywords:

end, elsif, else, when rescue and ensure.

Features

  • Highlight matching ruby block
  • 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.

Requirements

Enable the language-ruby package.

Settings

You can change behavior to highlight block by settings menu.

  • Show matching block into bottom panel(like Emacs minibuffer)

show bottom panel

  • Highlight line of matching block

highlight line

  • Highlight gutter of matching block

highlight gutter

Highlighting line and bottom panel are enable by default.

Overwriting default styles

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;
    }
  }
}

Thanks

Porting the features of juszczakn's great Emacs Ruby Block Mode to Atom.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by