code formatting

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

code formatting

jWarrior
attached is a small package of loose methods that adds formatting to the
method card
of the classBrowserShell. It requires RBParser.pac as a prerequisite.

you must manually add a 'format' item to the context menu of
SmalltalkWorkspace.DefaultView. i'm sure there is a way to export/import
just the view, but i don't know what it is right now.

the format compiles the method source, but does not save it. if the compile
is successful, the source is formatted by RBParser and put into the pane
still unsaved.
























begin 666 codeFormatting.pac
M?"!P86-K86=E('P-"G!A8VMA9V4@.CT@4&%C:V%G92!N86UE.B G8V]D949O
M<FUA='1I;F<G+@T*<&%C:V%G92!P87A697)S:6]N.B P.PT*"6)A<VEC0V]M
M;65N=#H@)R<N#0H-"G!A8VMA9V4@8F%S:6-086-K86=E5F5R<VEO;CH@)R<N
M#0H-"B)!9&0@=&AE('!A8VMA9V4@<V-R:7!T<R(-"@T*(D%D9"!T:&4@8VQA
M<W,@;F%M97,L(&QO;W-E(&UE=&AO9"!N86UE<RP@9VQO8F%L(&YA;65S+"!R
M97-O=7)C92!N86UE<R(-"G!A8VMA9V4@8VQA<W-.86UE<PT*"7EO=7)S96QF
M+@T*#0IP86-K86=E(&UE=&AO9$YA;65S#0H)861D.B C0VQA<W-"<F]W<V5R
M4VAE;&P@+3X@(V9O<FUA=#L-"@EA9&0Z("-#;&%S<T)R;W=S97)3:&5L;" M
M/B C9F]R;6%T365T:&]D.PT*"6%D9#H@(T-L87-S1&5S8W)I<'1I;VX@+3X@
M(V-O;7!I;&5.;T%D9#IC871E9V]R:65S.CL-"@EA9&0Z("--971H;V1"<F]W
M<V5R("T^("-F;W)M871-971H;V1);D-L87-S.F-A=&5G;W)I97,Z.PT*"7EO
M=7)S96QF+@T*#0IP86-K86=E(&=L;V)A;$YA;65S#0H)>6]U<G-E;&8N#0H-
M"G!A8VMA9V4@<F5S;W5R8V5.86UE<PT*"7EO=7)S96QF+@T*#0HB0FEN87)Y
M($=L;V)A;"!.86UE<R(-"G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-U<G)E;G1#87)D/3UC;VUM96YT5FEE=R!I
M9E1R=64Z(%L-"@D)7G-E;&8@<V%V94-O;6UE;G0@72XB(0T*#0IF;W)M871-
M971H;V0-"@DB4')I=F%T92 M($9O<FUA="!T:&4@=&5X="!O9B!T:&4@;65T
M:&]D('-O=7)C92X-"@ER8D9O<FUA="(-"@T*"7P@8V%T96=O<FEE<R!M971H
M;V0@? T*"6UE=&AO9" Z/2!S96QF(&UE=&AO9"X-"@EC871E9V]R:65S(#H]
M(&UE=&AO9"!I<TYI;" -"@D):694<G5E.B!;('P@8V%T('P@#0H)"0EC870@
M.CT@<V5L9B!C871E9V]R>2X-"@D)"2AC870@;F]T3FEL(&%N9#H@6V-A="!A
M8V-E<'1S061D:71I;VYS72D-"@D)"0EI9E1R=64Z(%M!<G)A>2!W:71H.B!C
M871=#0H)"0D):69&86QS93H@6W-E;&8@;6]D96P@9&5F875L=$UE=&AO9$-A
M=&5G;W)I97-=72 -"@D):69&86QS93H@6VUE=&AO9"!C871E9V]R:65S72X-
M"@D@;65T:&]D0G)O=W-E<E!R97-E;G1E<B!F;W)M871-971H;V1);D-L87-S
M.B!S96QF(&%C='5A;$-L87-S(&-A=&5G;W)I97,Z(&-A=&5G;W)I97,N#0H)
M(2 A#0HA0VQA<W-"<F]W<V5R4VAE;&P@8V%T96=O<FEE<T9O<CH@(V9O<FUA
M="%O<&5R871I;VYS(7!R:79A=&4A("$-"B%#;&%S<T)R;W=S97)3:&5L;"!C
M871E9V]R:65S1F]R.B C9F]R;6%T365T:&]D(6]P97)A=&EO;G,A<')I=F%T
M92$@(0T*#0HA0VQA<W-$97-C<FEP=&EO;B!M971H;V1S1F]R(0T*#0IC;VUP
M:6QE3F]!9&0Z(&-O9&4@8V%T96=O<FEE<SH@8V%T96=O<FEE<R -"@DB0V]M
M<&EL92!T:&4@87)G=6UE;G0L(&-O9&4L(&%S('-O=7)C92!C;V1E(&EN('1H
M92!C;VYT97AT(&]F('1H92!R96-E:79E<@T*"6%N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]M<&EL97)#;&%S<R!S>6YT87A#;VQO<D]F365T:&]D
M.B!P87)S951R964@9F]R;6%T=&5D0V]D90T*"0D)"0D):6XZ(&-L87-S*5TN
M#0H)<V]U<F-E4')E<V5N=&5R('-H;W=%<G)O<G,N#0H)<V]U<F-E4')E<V5N
M=&5R('-E;&5C=&EO;E)A;F=E(&ES16UP='D@#0H)"6EF5')U93H@6W-O=7)C
M95!R97-E;G1E<B!V:65W('-E;&5C=&EO;E)A;F=E.B!O<FEG:6YA;%-E;&5C
M=&EO;ETN#0H)(W1O9&\)(E1A:V4@861V86YT86=E(&]F('1H92!N97<@8V]M
M<&EL97(@;F]T:69I8V%T:6]N<R!T;R!S:6UP;&EF>2!T:&ES( T*"0DH<&5R
M:&%P<R!M;W9E(&UO<F4@=&\@4VUA;&QT86QK5V]R:W-P86-E+"!L:6ME(&5X
M<')E<W-I;VX@8V]M<&EL871I;VXL#0H)"6%S(&UU8V@@;V8@=&AI<R!I<R!D
M=7!L:6-A=&5D(&EN('1H92!P86-K86=E(&)R;W=S97(@=&]O*2(A("$-"B%-
M971H;V1"<F]W<V5R(&-A=&5G;W)I97-&;W(Z("-F;W)M871-971H;V1);D-L
M87-S.F-A=&5G;W)I97,Z(6]P97)A=&EO;G,A<')I=F%T92$@(0T*#0HB16YD
M(&]F('!A8VMA9V4@9&5F:6YI=&EO;B(A#0H-"B -"B)":6YA<GD@1VQO8F%L
7<R(A#0H-"B)297-O=7)C97,B(0T*#0H`
`
end


Reply | Threaded
Open this post in threaded view
|

Re: code formatting

Joey Gibson-2
In article <9d91m7$lhh$[hidden email]>, [hidden email] says...

> attached is a small package of loose methods that adds formatting to the
> method card
> of the classBrowserShell. It requires RBParser.pac as a prerequisite.
>
> you must manually add a 'format' item to the context menu of
> SmalltalkWorkspace.DefaultView. i'm sure there is a way to export/import
> just the view, but i don't know what it is right now.
>
> the format compiles the method source, but does not save it. if the compile
> is successful, the source is formatted by RBParser and put into the pane
> still unsaved.

Very nice!! Thank you! I had gotten to where I really liked having the
formatter in VW and sort of missed it in Dolphin. This works really
well. I just installed it and added the format option to the menu and it
works with no problem.

Thanks again,
Joey



-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----