> On 15 Mar 2019, at 08:48, Holger Freyther <[hidden email]> wrote:
> I found myself doing codereview and commenting on style (e.g. missing indention). It seems like a task that can be easily automated and in fact we have RBFormmatter/BlueInk to do it.
> What I didn't see is if a project can supply the style (instead of the image configuration)? \\
> How could this be achieved?
That would be really nice! Right now it uses global Preferences.
We should check how much work it would be to allow the global setup to be overridden per Class and per Package…
This would need some refactoring, though… the settings are already localised in the BIPrettyPrinterContext class.
There is one instance in the class var DefaultPrettyPrintContext in the main pretty printer class.
We would need some way to do this *per instance* of the pretty printer and then set it when creating the pretty printer,
asking the class and the manifest for a PrettyPrintContext before setting the default…