Hello
I use a patched PB-Editor because of easy to configure autoindent and autocomplete as Editor for a script language.
Works fine besides one thing: After ; there is of course no autocomplete and the color changes etc.
Does someone know how to change comments from ; to // ?
Thanks
RR
Changing Comment ; to // ?
Changing Comment ; to // ?
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
Re: Changing Comment ; to // ?
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Re: Changing Comment ; to // ?
Because that does not work
You know, most script languages use c-style
Code: Select all
for (i=0; i<maxvar; i++)
So the ; as commentsign must be elimenated and while that's done changing it to // would be good, but not necessary ...

--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
Re: Changing Comment ; to // ?
Pure isn't C. // is ugly as hell. I could live with ' but not with //...IceSoft wrote:Why not:
( 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... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Re: Changing Comment ; to // ?
Thade--use Notepad++; it has configurable syntax highlighting.
About 80-90% of all code written in this day and age use // as the start of a comment. That is not an exaggeration. All of the top five most popular languages (Normalized Comparison chart, on http://langpop.com/ ) use the double-slash for comments. Many of the top ten use # (perl, ruby, python) or some other "random" character, but PB is stuck in the 80's. I would be shocked if that were not the "reason" for this request.
Because PB uses the apostrophe for characters (i.e. 'a' ), PB cannot use that for comments. Many Basics of old use the semicolon, so this is one of those retro hang-on things we are going to have to deal with...unless Fred chooses to add the backward-compatible option to use // as a second method for commenting. And we all know what kind of changes Fred makes to the compiler, and this is not one of them. I'm so confident he won't that I will promise to buy myself another PB license if he does!
This is comical, blue! While I would prefer the option to switch comments to // also (or add as an alternative denotation), I understand why Fred does not...but ugly? Calling (a) punctuation mark(s) ugly is ridiculous!blueznl wrote:... // is ugly as hell. I could live with ' but not with //...
About 80-90% of all code written in this day and age use // as the start of a comment. That is not an exaggeration. All of the top five most popular languages (Normalized Comparison chart, on http://langpop.com/ ) use the double-slash for comments. Many of the top ten use # (perl, ruby, python) or some other "random" character, but PB is stuck in the 80's. I would be shocked if that were not the "reason" for this request.
Because PB uses the apostrophe for characters (i.e. 'a' ), PB cannot use that for comments. Many Basics of old use the semicolon, so this is one of those retro hang-on things we are going to have to deal with...unless Fred chooses to add the backward-compatible option to use // as a second method for commenting. And we all know what kind of changes Fred makes to the compiler, and this is not one of them. I'm so confident he won't that I will promise to buy myself another PB license if he does!
Re: Changing Comment ; to // ?
May be i can do it only a for a version ? 

Re: Changing Comment ; to // ?
I'll throw in another version for:
block commenting
line continuation

block commenting
line continuation

The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
- Kwai chang caine
- Always Here
- Posts: 5494
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: Changing Comment ; to // ?
Yes yes ....line continuation..line continuationskywalk wrote:I'll throw in another version for:
block commenting
line continuation
+100


Not a destination