code formatter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

code formatter

Mark Volkmann
Is there a command to format the code of a method in the System Browser?
When I select the code and then select "Pretty Print" nothing happens.

---
Mark Volkmann




_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: code formatter

Rob Rothwell
Try right-clicking on the method name (in the method pane of the browser) and selecting "pretty print" (at least in the Omnibrowser)...

Rob

On Fri, Sep 26, 2008 at 6:07 PM, Mark Volkmann <[hidden email]> wrote:
Is there a command to format the code of a method in the System Browser?
When I select the code and then select "Pretty Print" nothing happens.

---
Mark Volkmann




_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: code formatter

Mark Volkmann
On Sep 26, 2008, at 6:50 PM, Rob Rothwell wrote:

Try right-clicking on the method name (in the method pane of the browser) and selecting "pretty print" (at least in the Omnibrowser)...

Pretty print isn't in that menu when using System Browser. Maybe I should switch to OmniBrowser. I haven't tried that yet.

Is it really possible that System Browser can't format code?

Rob

On Fri, Sep 26, 2008 at 6:07 PM, Mark Volkmann <[hidden email]> wrote:
Is there a command to format the code of a method in the System Browser?
When I select the code and then select "Pretty Print" nothing happens.

---
Mark Volkmann





_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: code formatter

Rob Rothwell
Hmm...I just switched to a SystemBrowser in a pharo dev image, highlighted the code in a method, right clicked, selected "more...", and pretty print, and it rearranged my code...

What image are you using?

Rob

On Fri, Sep 26, 2008 at 7:59 PM, Mark Volkmann <[hidden email]> wrote:
On Sep 26, 2008, at 6:50 PM, Rob Rothwell wrote:

Try right-clicking on the method name (in the method pane of the browser) and selecting "pretty print" (at least in the Omnibrowser)...

Pretty print isn't in that menu when using System Browser. Maybe I should switch to OmniBrowser. I haven't tried that yet.

Is it really possible that System Browser can't format code?

Rob

On Fri, Sep 26, 2008 at 6:07 PM, Mark Volkmann <[hidden email]> wrote:
Is there a command to format the code of a method in the System Browser?
When I select the code and then select "Pretty Print" nothing happens.

---
Mark Volkmann






_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: code formatter

Mark Volkmann
On Sep 26, 2008, at 7:03 PM, Rob Rothwell wrote:

Hmm...I just switched to a SystemBrowser in a pharo dev image, highlighted the code in a method, right clicked, selected "more...", and pretty print, and it rearranged my code...

What image are you using?

I just repeated the steps you listed and it still didnt' work. I'm using Squeak3.10.2-7179-basic on a Mac.

Rob

On Fri, Sep 26, 2008 at 7:59 PM, Mark Volkmann <[hidden email]> wrote:
On Sep 26, 2008, at 6:50 PM, Rob Rothwell wrote:

Try right-clicking on the method name (in the method pane of the browser) and selecting "pretty print" (at least in the Omnibrowser)...

Pretty print isn't in that menu when using System Browser. Maybe I should switch to OmniBrowser. I haven't tried that yet.

Is it really possible that System Browser can't format code?

Rob

On Fri, Sep 26, 2008 at 6:07 PM, Mark Volkmann <[hidden email]> wrote:
Is there a command to format the code of a method in the System Browser?
When I select the code and then select "Pretty Print" nothing happens.

---
Mark Volkmann







---
Mark Volkmann





_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: code formatter

Rob Rothwell
Doesn't seem to work on Windows either!

Now, we are outside the realm of my experience.  For all your coding pleasure--color syntax highlighting and more--maybe you might want to try one of the dev images?  Select "others" in the download box at squeak.org...

Rob 

On Fri, Sep 26, 2008 at 8:18 PM, Mark Volkmann <[hidden email]> wrote:
On Sep 26, 2008, at 7:03 PM, Rob Rothwell wrote:

Hmm...I just switched to a SystemBrowser in a pharo dev image, highlighted the code in a method, right clicked, selected "more...", and pretty print, and it rearranged my code...

What image are you using?

I just repeated the steps you listed and it still didnt' work. I'm using Squeak3.10.2-7179-basic on a Mac.

Rob

On Fri, Sep 26, 2008 at 7:59 PM, Mark Volkmann <[hidden email]> wrote:
On Sep 26, 2008, at 6:50 PM, Rob Rothwell wrote:

Try right-clicking on the method name (in the method pane of the browser) and selecting "pretty print" (at least in the Omnibrowser)...

Pretty print isn't in that menu when using System Browser. Maybe I should switch to OmniBrowser. I haven't tried that yet.

Is it really possible that System Browser can't format code?

Rob

On Fri, Sep 26, 2008 at 6:07 PM, Mark Volkmann <[hidden email]> wrote:
Is there a command to format the code of a method in the System Browser?
When I select the code and then select "Pretty Print" nothing happens.

---
Mark Volkmann







---
Mark Volkmann






_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: code formatter

Ian J Cottee-3
A +1 from me regarding the dev images. Having used the SBE image, I
thought I'd go to a vanilla Squeak image when I started my
development. No no no. I think it was a link that I folllowed from
here or irc that led me to the dev images. Well worth using.

On Sat, Sep 27, 2008 at 1:32 AM, Rob Rothwell <[hidden email]> wrote:

> Doesn't seem to work on Windows either!
> Now, we are outside the realm of my experience.  For all your coding
> pleasure--color syntax highlighting and more--maybe you might want to try
> one of the dev images?  Select "others" in the download box at squeak.org...
> Rob
>
> On Fri, Sep 26, 2008 at 8:18 PM, Mark Volkmann <[hidden email]> wrote:
>>
>> On Sep 26, 2008, at 7:03 PM, Rob Rothwell wrote:
>>
>> Hmm...I just switched to a SystemBrowser in a pharo dev image, highlighted
>> the code in a method, right clicked, selected "more...", and pretty print,
>> and it rearranged my code...
>> What image are you using?
>>
>> I just repeated the steps you listed and it still didnt' work. I'm
>> using Squeak3.10.2-7179-basic on a Mac.
>>
>> Rob
>> On Fri, Sep 26, 2008 at 7:59 PM, Mark Volkmann <[hidden email]> wrote:
>>>
>>> On Sep 26, 2008, at 6:50 PM, Rob Rothwell wrote:
>>>
>>> Try right-clicking on the method name (in the method pane of the browser)
>>> and selecting "pretty print" (at least in the Omnibrowser)...
>>>
>>> Pretty print isn't in that menu when using System Browser. Maybe I should
>>> switch to OmniBrowser. I haven't tried that yet.
>>> Is it really possible that System Browser can't format code?
>>>
>>> Rob
>>> On Fri, Sep 26, 2008 at 6:07 PM, Mark Volkmann <[hidden email]> wrote:
>>>>
>>>> Is there a command to format the code of a method in the System Browser?
>>>> When I select the code and then select "Pretty Print" nothing happens.
>>>
>>> ---
>>> Mark Volkmann
>>>
>>>
>>>
>>
>>
>>
>> ---
>> Mark Volkmann
>>
>>
>>
>
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: code formatter

Jerome Peace
In reply to this post by Mark Volkmann
[Newbies] code formatter


Mark Volkmann mark at ociweb.com
Sat Sep 27 00:18:00 UTC 2008

Hi Mark,

Use case:

In a fresh sq7159
world menu>open>class browser

select a method
 (I used KernelTests-Methods
        >MethodPropertiesTest
                >testAllMethodsHaveMethodClass )
to the right of the 'class vars' button there is a button that usually says 'source' .
Press that and you get a menu.
Select 'pretty print'

The button will now read 'pretty print' and the methods will be displayed that way.
When I do this I usually go full hog an ask for color print which highlights the different parts of squeak.  
The color scheme is different than shouts but it is very helpful in groking code.

Yours in curiosity and service, --Jerome Peace

On Sep 26, 2008, at 7:03 PM, Rob Rothwell wrote:

> Hmm...I just switched to a SystemBrowser in a pharo dev image,  
> highlighted the code in a method, right clicked, selected "more...",  
> and pretty print, and it rearranged my code...
>
> What image are you using?

I just repeated the steps you listed and it still didnt' work. I'm  
using Squeak3.10.2-7179-basic on a Mac.

> Rob
>
> On Fri, Sep 26, 2008 at 7:59 PM, Mark Volkmann <mark at ociweb.com>  
> wrote:
> On Sep 26, 2008, at 6:50 PM, Rob Rothwell wrote:
>
>> Try right-clicking on the method name (in the method pane of the  
>> browser) and selecting "pretty print" (at least in the  
>> Omnibrowser)...
>
> Pretty print isn't in that menu when using System Browser. Maybe I  
> should switch to OmniBrowser. I haven't tried that yet.
>
> Is it really possible that System Browser can't format code?
>
Ha.  Squeak knows how to do more things than you or I know how to ask it.

My working assumpt.



     
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Re: code formatter

Mark Volkmann
On Sep 27, 2008, at 9:56 PM, Jerome Peace wrote:

> [Newbies] code formatter
>
>
> Mark Volkmann mark at ociweb.com
> Sat Sep 27 00:18:00 UTC 2008
>
> Hi Mark,
>
> Use case:
>
> In a fresh sq7159
> world menu>open>class browser
>
> select a method
> (I used KernelTests-Methods
> >MethodPropertiesTest
> >testAllMethodsHaveMethodClass )
> to the right of the 'class vars' button there is a button that  
> usually says 'source' .
> Press that and you get a menu.
> Select 'pretty print'
>
> The button will now read 'pretty print' and the methods will be  
> displayed that way.
> When I do this I usually go full hog an ask for color print which  
> highlights the different parts of squeak.
> The color scheme is different than shouts but it is very helpful in  
> groking code.

Thank you very much! That worked!
The other key thing I learned from this is that after it is selected,  
pretty printing is done automatically any time changes to the code in  
a method are saved. Cool!

> Yours in curiosity and service, --Jerome Peace
>
> On Sep 26, 2008, at 7:03 PM, Rob Rothwell wrote:
>
>> Hmm...I just switched to a SystemBrowser in a pharo dev image,
>> highlighted the code in a method, right clicked, selected "more...",
>> and pretty print, and it rearranged my code...
>>
>> What image are you using?
>
> I just repeated the steps you listed and it still didnt' work. I'm
> using Squeak3.10.2-7179-basic on a Mac.
>
>> Rob
>>
>> On Fri, Sep 26, 2008 at 7:59 PM, Mark Volkmann <mark at ociweb.com>
>> wrote:
>> On Sep 26, 2008, at 6:50 PM, Rob Rothwell wrote:
>>
>>> Try right-clicking on the method name (in the method pane of the
>>> browser) and selecting "pretty print" (at least in the
>>> Omnibrowser)...
>>
>> Pretty print isn't in that menu when using System Browser. Maybe I
>> should switch to OmniBrowser. I haven't tried that yet.
>>
>> Is it really possible that System Browser can't format code?
>>
> Ha.  Squeak knows how to do more things than you or I know how to  
> ask it.
>
> My working assumpt.
>
>
>
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners


---
Mark Volkmann




_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners