Adding the ability for format only the selected region, if nothing is selected, it will format the entire buffer. If multiple regions are selection, it will format all of them.
Merge pull request #17 from simvan/format-selected-region

Format only selected region