Plugin "Ruby Format"

This is command plugin for SynWrite editor.
It allows to format (beautify) source code for Ruby lexer.

If selection is made (only normal selection supported) then only selection is formatted, otherwise entire file is formatted. But note: selection formatting is incorrect in many cases, e.g. if you format only nested { } block, it will have incorrect indent regarding parent { } block.

Plugin has few commands in SynWrite menu "Tools - Plugins".

Configuration

Plugin has configuration file "syn_ruby_format.cfg", which is auto-created from sample file "syn_ruby_format.sample.cfg". It's in INI format with some usual options.

You can edit config file using two "Configure" commands:

How to install

Just open plugin's zip-file in SynWrite, and confirm installation.
Default hotkey can be changed using SynWrite command "Options - Advanced - Edit file SynPlugins.ini".

About

Author: Alexey T. (SynWrite author)

Licensed under MIT license.

Credits

3rd-party Ruby formatter Python module.
Licensed under MIT license.