Re: [Pharo-users] Environment-independent styler?

2015-06-23 Thread Martin Dias
On Mon, Jun 22, 2015 at 3:30 PM, Yuriy Tymchuk yuriy.tymc...@me.com wrote: My 2 cents: we need a diff model. Because for now there is TextDiffBuilder which “diffs” text by lines i.e. bad granularity, and there is a DiffMorph that produces nice diffs but it’s hard to reuse it in other

Re: [Pharo-users] Environment-independent styler?

2015-06-22 Thread Marcus Denker
On 17 Jun 2015, at 18:54, Martin Dias tinchod...@gmail.com wrote: Hello, Suppose that you want to show the diff between the source code of two methods. In the case that both methods are in the same class, and that such class is present in the system, then no problem: In a DiffModel,

Re: [Pharo-users] Environment-independent styler?

2015-06-22 Thread Thierry Goubier
2015-06-22 9:11 GMT+02:00 Marcus Denker marcus.den...@inria.fr: On 17 Jun 2015, at 18:54, Martin Dias tinchod...@gmail.com wrote: Hello, Suppose that you want to show the diff between the source code of two methods. In the case that both methods are in the same class, and that such

Re: [Pharo-users] Environment-independent styler?

2015-06-22 Thread Martin Dias
After debugging a bit and discovering the mess around... I think the best decision is to first migrate the DiffMorph to the new text widget, and then see... Martín On Mon, Jun 22, 2015 at 9:53 AM, Thierry Goubier thierry.goub...@gmail.com wrote: 2015-06-22 9:11 GMT+02:00 Marcus Denker

Re: [Pharo-users] Environment-independent styler?

2015-06-22 Thread Yuriy Tymchuk
My 2 cents: we need a diff model. Because for now there is TextDiffBuilder which “diffs” text by lines i.e. bad granularity, and there is a DiffMorph that produces nice diffs but it’s hard to reuse it in other contexts. Uko On 22 Jun 2015, at 15:18, Martin Dias tinchod...@gmail.com wrote:

[Pharo-users] Environment-independent styler?

2015-06-17 Thread Martin Dias
Hello, Suppose that you want to show the diff between the source code of two methods. In the case that both methods are in the same class, and that such class is present in the system, then no problem: In a DiffModel, one can set a context to the smalltalk syntax styler and get a nice output.