This is command plugin for SynWrite editor.
It allows to format (beautify) source code for these lexers: C++, C, C#, Java, using good AStyle library.
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. Sublime's plugin AStyleFormatter does special work for this case, and it's too complex, so it's not "repeated" here.
Plugin has few commands in SynWrite menu "Tools - Plugins".
Plugin has configuration file "syn_astyle.cfg", which is auto-created from sample file "syn_astyle.sample.cfg". It's single-line text file with AStyle command-line options, see list of those at AStyle doc page.
You can edit config file using two "Configure" commands:
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".
Supported lexers list can be edited in "SynPlugins.ini" as well, e.g. you may add some C-family lexer name to that list.
Author: Alexey T. (SynWrite author)
License:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Artistic Style - Automatic Formatter for C, C++, C#, and Java Source Code.
Licensed under GNU LGPL 3.0.
Python wrapper for AStyle library.
Licensed under MIT license.
Thanks to MVV / CaptainFlint from wincmd.ru forum for compiling AStyle lib.