[Implemented] Auto Source Formatting in PB Editor

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

[Implemented] Auto Source Formatting in PB Editor

Post by einander »

Is possible to add Bericko's Source Formatting as an option in the PB editor, so when it's enabled you get each line formatted as you enter it?
Thanks in advance!
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Re: Auto Source Formatting in PB Editor

Post by GPI »

einander wrote:Is possible to add Bericko's Source Formatting as an option in the PB editor, so when it's enabled you get each line formatted as you enter it?
Thanks in advance!
Only when you combine both sourcecode to one sourcecode.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

use japbe
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post by einander »

blueznl wrote:use japbe
Yeah, I've used JapBe for a while, and I like it, but Auto Save before compiling is not for me. And finding auto bakups is slow.

For me, as a musician, programming is like composing music: can't play with an instrument that plays notes I dont need.

PB Editor is not a Stradivarius, but is a very good fiddle! :)
(And I'm not a programmer Paganini!) :wink:

Auto Indent is the only PB Editor feature that I'm missing.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

you can turn of auto saving, can't you?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post by einander »

No.
GPI says that in JapBe the compiler needs the current file previously saved.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

einander wrote:No.
GPI says that in JapBe the compiler needs the current file previously saved.
It is always a good idea to save your code before compile, because when the editor crash or hangs (Remember the Structure-Viewer-Hang-Problem?) your source is lost.

In the next release of japbe will include a load Backup command. A list with all Backups + Date will be list and you can select it.
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post by einander »

That sounds great! I would find that very useful :D
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> It is always a good idea to save your code before compile, because
> when the editor crash or hangs [...] your source is lost.

Which can be fine. I like to open my sources, change a few things, hit
compile, and see the results. I can then exit and know that the changes
weren't saved -- because if I did like the results, I'd have saved it anyway.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Thats why you can activate Backups... (And it is always a good idea to make also manual backups (for example) on CD; So when your HDD crash, you don't lost all your sources.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Ok, new version of jaPBe with open Backup (alt+o)
User avatar
Guimauve
Enthusiast
Enthusiast
Posts: 742
Joined: Wed Oct 22, 2003 2:51 am
Location: Canada

Post by Guimauve »

If you want to have a Source Formatting in PureBasic you can go to Le Soldat Inconnu's website and download a small program called PBSyntax. This program just work fine. You have all information about how to intergrate it into PB

Go here: http://perso.wanadoo.fr/lesoldatinconnu ... ebasic.htm

Or download here : http://perso.wanadoo.fr/lesoldatinconnu ... Syntax.exe

Try it and give some feedback.

Regards
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post by einander »

Guimauve:

Im starting to work with this source formatting tool.
With a 200 lines file, very unformatted, the last 20 lines vanishing! :cry:
With shorter files, it seems to work ok.
Nice tool! :wink:
Regards
Einander
Post Reply