What it would be also good, would be the possibility to define and register new styles. In this was users could define more than one custom style.
That could even be considered a Feature Request for the current plugin, but if any of you do that it'd mean pending work for me (right, I'm the maintainer of the plugin, but some bug reports and requests are for AStyle itself, not the plugin)
. I'll have it in mind
IMHO, the code should also thought extensible and scalable to allow integration of e.g., another parser.
IYHO, you still insist (I agree, but it'd be even more work)
If this plugin goes somewhere (instead of just converting the current file in a (token, lexeme) pair as it does now), it could have the same luck of the CodeCompletion plugin (redisign)
.
I wonder if Rick would like to suffer with this one too... :twisted:
The AStyle way is not so bad actually, it is simple and it works. But there are just a few things which AStyled does not do the way I like it (for example, it compresses white space in comments and around '=', and always puts {} in a new line, so if you spend a lot of time laying out things properly, the code formatter destroys it later). Also you can only configure everything from hand, or nothing, which is annoying (for example, I like the way ANSI style looks, but I don't like spaces for indentation).
I've had it in mind since you sent me that PM, so don't worry. If it gets somewhere I'll try to get that working... eventually
Why don't you make a simple "choose one out of n" interface (list box, for example). The actual configuration is read in from a config file, and you just provide 3-4 such configs. If somebody wants something different from ANSI, Gnu, or K&R, then he can write his own config and is not limited to a stiff GUI. Most people will use one of the default sets, so they have a 1-click configuration.
So, have a simple "choose one of..." interface and save the stiff GUI for customization so everybody will stick with the 3-4 configs. Understood
(Oh, and thanks, you just suggested the name for the customization button: "Stiff GUI"
... (designing a GUI takes 90% of your time, but only 10% of the people use it 1% of their time...).
I love that sentence, but I bet it'sn't yours :wink:
It's now time to focus on the Stiff GUI...