[Cuis-dev] System Browser ... show ... prettyPrint

Juan Vuletich juan at cuis.st
Mon Jul 1 07:00:08 PDT 2024


On 6/24/2024 9:58 AM, Mark Volkmann via Cuis-dev wrote:
> As this name implies, this preference only affects the way code is 
> displayed, not how it will be saved in a package or fileOut. I wish 
> there was a way to actually format the code.

While that's true, it is just a matter of saving it again after it is 
displayed. Then, it will be saved exactly as it looks on the screen.

Another way is to use #addCodeNormalizer:, that I added just a couple of 
days ago. See the examples in the method comment.

Cheers,

>
> On Mon, Jun 24, 2024 at 7:48 AM Mark Volkmann 
> <r.mark.volkmann at gmail.com <mailto:r.mark.volkmann at gmail.com>> wrote:
>
>     Yes, entering the following in a Workspace and "Do it" works:
>
>     Preferences at: #browseWithPrettyPrint put: true
>
>     This seems like something enough people would want to enable that
>     it deserves to be directly on the Preferences menu that is
>     accessed from the World menu.
>
>     On Sun, Jun 23, 2024 at 5:02 PM Juan Vuletich <juan at cuis.st
>     <mailto:juan at cuis.st>> wrote:
>
>         #browseWithPrettyPrint
>
>         On 6/23/2024 1:05 PM, Mark Volkmann via Cuis-dev wrote:
>>         I don't see anything related to code formatting or pretty
>>         printing on the actual Preferences menu.
>>         I clicked "All Preferences..." which opens a Preferences window.
>>         In that list the only thing I see that seems related is
>>         #prettyPrintRectangularBlocks.
>>         That is set to false.
>>         It's not clear that it would do that to method code
>>         automatically every time I save a change if I set that to true.
>>         Is that what I need to change?
>>         I would try that, but I haven't discovered a way to change
>>         that value to true.
>>         For example, doing this in the bottom pane of that window
>>         doesn't work:
>>
>>         self prettyPrintRectangularBlocks: true
>>
>>         On Sun, Jun 23, 2024 at 5:56 AM Hilaire Fernandes via
>>         Cuis-dev <cuis-dev at lists.cuis.st
>>         <mailto:cuis-dev at lists.cuis.st>> wrote:
>>
>>             Have you checked the preferences?
>>
>>             -- 
>>             GNU Dr. Geo
>>             http://gnu.org/s/dr-geo/
>>             http://gnu-drgeo.blogspot.com/
>>
>>             -- 
>>             Cuis-dev mailing list
>>             Cuis-dev at lists.cuis.st <mailto:Cuis-dev at lists.cuis.st>
>>             https://lists.cuis.st/mailman/listinfo/cuis-dev
>>
>>
>>
>>         -- 
>>         R. Mark Volkmann
>>         Object Computing, Inc.
>
>
>         -- 
>         Juan Vuletich
>         cuis.st  <http://cuis.st>
>         github.com/jvuletich  <http://github.com/jvuletich>
>         researchgate.net/profile/Juan-Vuletich  <http://researchgate.net/profile/Juan-Vuletich>
>         independent.academia.edu/JuanVuletich  <http://independent.academia.edu/JuanVuletich>
>         patents.justia.com/inventor/juan-manuel-vuletich  <http://patents.justia.com/inventor/juan-manuel-vuletich>
>         linkedin.com/in/juan-vuletich-75611b3  <http://linkedin.com/in/juan-vuletich-75611b3>
>         twitter.com/JuanVuletich  <http://twitter.com/JuanVuletich>
>
>
>
>     -- 
>     R. Mark Volkmann
>     Object Computing, Inc.
>
>
>
> -- 
> R. Mark Volkmann
> Object Computing, Inc.


-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240701/2620d8a0/attachment-0001.htm>


More information about the Cuis-dev mailing list