Configurable source code beautifier for FB

New to FreeBASIC? Post your questions here.
vpdura
Posts: 6
Joined: Jan 08, 2007 23:30

Configurable source code beautifier for FB

Postby vpdura » Jan 09, 2007 22:48

Does any know of a configurable source code beautifier for Free Basic? I'm looking for something where the user can set the degree of indentation, etc.; something like INDENT for C source code.

Thanks
cha0s
Site Admin
Posts: 5317
Joined: May 27, 2005 6:42
Location: Illinois
Contact:

Postby cha0s » Jan 09, 2007 22:59

You should have put a '?' on the end of that :P I thought you had one to show ;)

Anyways, no one has written one in this community that I know of. It would be a great addition.
yetifoot
Posts: 1710
Joined: Sep 11, 2005 7:08
Location: England
Contact:

Postby yetifoot » Jan 10, 2007 1:36

Yeah, lol, I thought there was going to be a program here too...
VonGodric
Posts: 997
Joined: May 27, 2005 9:06
Location: London
Contact:

Postby VonGodric » Jan 10, 2007 2:01

fbide has it.

View->format

You can change case, generate html and do automatic indent.
robert

FBStyle

Postby robert » Jan 10, 2007 2:24

Garvan O'Keefe wrote a FreeBASIC code formatting utility many moons ago. The description from

http://www.freewebs.com/weekendcode/Console.htm

says

FBStyle

This is a conversion of my BASIC code formatting utility to FreeBASIC source code and FreeBASIC syntax. The main motivation behind the conversion was to use the utility with my Linux setup. This program was original developed from CHANGECASE above with other programmers adding the indenting capability. Conversion to FreeBASIC involved some simple syntax changes, and new sections to tackle indenting module level code.

Download Source:

http://www.freewebs.com/weekendcode/fbstyle.zip

Robert Wishlaw
markem
Posts: 47
Joined: Aug 30, 2006 23:17
Contact:

Re: Configurable source code beautifier for FB

Postby markem » Sep 09, 2019 4:54

Anyway to get this now?
storm5510
Posts: 41
Joined: Nov 28, 2019 15:47

Re: Configurable source code beautifier for FB

Postby storm5510 » Dec 29, 2019 0:38

It would be of great assistance if there was an IDE something like what VB6 or .Net has. If I could step through a program, one line at a time and see the results, it would be most helpful. The current editors do not catch anything which is not an error, but simply does not work, or work properly.
JohnK_RQ
Posts: 5
Joined: Nov 25, 2019 1:50

Re: Configurable source code beautifier for FB

Postby JohnK_RQ » Dec 29, 2019 0:55

There is the FreeQ ide that does SOME for you depending on the complexity.
Load up your fb code then press F4.
Tabs, spaces are in the FreeQ configuration

http://rapidq.phatcode.net/FreeQ/

There are some differences between FB and rapidq, but they are similar. The sourcecode link is at the top of the page.

Jk
robert
Posts: 16
Joined: Aug 06, 2019 18:45

Re: Configurable source code beautifier for FB

Postby robert » Dec 30, 2019 0:59

markem wrote:Anyway to get this now?


It is now at

http://weekendcode.phatcode.net/

It's in the Software section listed as FBStyle.

Check out Garvan's other quality FreeBASIC tools and utilities. Top shelf items.
Tourist Trap
Posts: 2792
Joined: Jun 02, 2015 16:24

Re: Configurable source code beautifier for FB

Postby Tourist Trap » Jan 03, 2020 19:34

Hi, I heard that *Geany* did that in the past. I can't be sure since it was some linux users speaking.
A search in the forum with beautify keyword may well return something anyway.
https://www.geany.org/
badidea
Posts: 1779
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: Configurable source code beautifier for FB

Postby badidea » Jan 03, 2020 22:56

Tourist Trap wrote:Hi, I heard that *Geany* did that in the past. I can't be sure since it was some linux users speaking.
A search in the forum with beautify keyword may well return something anyway.
https://www.geany.org/

There is FBeauty.bas, a Geany custom command for code beautyfying, but this does not do code indenting.

Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 1 guest