Editor: Code header as "signature" for new

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
langinagel
Enthusiast
Enthusiast
Posts: 131
Joined: Fri Jan 28, 2005 11:53 pm
Location: Germany
Contact:

Editor: Code header as "signature" for new

Post by langinagel »

Hello,

it would be nice to have a predefined code header on the PB editor when pushing the new button.
This would be similar to the signature footers on the emails.

Greetings
LN
https://www.doerpsoft.org

Boost. Work. Efficiency.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Editor: Code header as "signature" for new

Post by ts-soft »

PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
langinagel
Enthusiast
Enthusiast
Posts: 131
Joined: Fri Jan 28, 2005 11:53 pm
Location: Germany
Contact:

Re: Editor: Code header as "signature" for new

Post by langinagel »

This is nice, good and clever! THX a lot.

But: If I like to change the signature i need to recompile the program.
If it was integrated in the editor, i could change the signature from project to project.

But I am already complaining on very low level...this would just be the dot on the i.
https://www.doerpsoft.org

Boost. Work. Efficiency.
User avatar
Bisonte
Addict
Addict
Posts: 1308
Joined: Tue Oct 09, 2007 2:15 am

Re: Editor: Code header as "signature" for new

Post by Bisonte »

You can enhance this by yourself, like Zebuddi123 or me (german forum) ...

The code is there... :mrgreen:
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Editor: Code header as "signature" for new

Post by PB »

> it would be nice to have a predefined code header on the PB
> editor when pushing the new button.
> This would be similar to the signature footers on the emails.

+1

I requested something similar back in 2007:

http://www.purebasic.fr/english/viewtop ... =3&t=25651

It was for procedures only, and thus had flaws, but I still think a
default code template for a "New" button is a great idea, without
having to install a tool.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply