Author Topic: Pretty Printer / Indenter  (Read 2365 times)

0 Members and 1 Guest are viewing this topic.

bugmagnet

  • Guest
Pretty Printer / Indenter
« on: April 20, 2013, 06:33:12 AM »
Is there a pretty printer / re-indenter / formatter tool for OB anywhere? Or do I have to write it?

There's a lot of semi-readable code in here.

Kind regards,
Bugmagnet

Aurel

  • Guest
Re: Pretty Printer / Indenter
« Reply #1 on: April 20, 2013, 09:34:10 AM »
Quote
There's a lot of semi-readable code in here.

semi-readable   ???
you probably mean - code which you don't understand properly ...
or something like that ?

bugmagnet

  • Guest
Re: Pretty Printer / Indenter
« Reply #2 on: April 20, 2013, 06:17:04 PM »
semi-readable   ???
you probably mean - code which you don't understand properly ...
or something like that ?

Indentation makes it easier for me to understand the intent of the code. It's a weakness I have.

Bugmagnet

bugmagnet

  • Guest
Re: Pretty Printer / Indenter
« Reply #3 on: April 20, 2013, 06:24:11 PM »
Is there a pretty printer / re-indenter / formatter tool for OB anywhere? Or do I have to write it?

I have since then found the indenter.o2bas file in OxygenBasic\tools\CodeMan

Apologies,
bugmagnet

Charles Pegge

  • Guest
Re: Pretty Printer / Indenter
« Reply #4 on: April 21, 2013, 01:38:19 AM »
Hi Bruce,

That code, if I remember rightly, needs a thorough rework. Indented code blocks is very good but often gets out of control on long blocks. Haven't found the ideal solution yet,

Charles