Page 1 of 1
Changing Comment ; to // ?
Posted: Wed Oct 03, 2012 5:13 pm
by Thade
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
Re: Changing Comment ; to // ?
Posted: Wed Oct 03, 2012 6:35 pm
by IceSoft
Re: Changing Comment ; to // ?
Posted: Thu Oct 04, 2012 2:39 am
by Thade
IceSoft wrote:Why not:
Change
to
Because that does not work
You know, most script languages use c-style
After the first ; everything is treated as comment !
So the ; as commentsign must be elimenated and while that's done changing it to // would be good, but not necessary ...

Re: Changing Comment ; to // ?
Posted: Wed Oct 24, 2012 5:18 pm
by blueznl
IceSoft wrote:Why not:
Pure isn't C. // is ugly as hell. I could live with ' but not with //...
Re: Changing Comment ; to // ?
Posted: Wed Oct 24, 2012 8:44 pm
by Tenaja
Thade--use Notepad++; it has configurable syntax highlighting.
blueznl wrote:... // is ugly as hell. I could live with ' but not with //...
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!
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 // ?
Posted: Wed Oct 24, 2012 8:52 pm
by Fred
May be i can do it only a for a version ?

Re: Changing Comment ; to // ?
Posted: Wed Oct 24, 2012 10:08 pm
by skywalk
I'll throw in another version for:
block commenting
line continuation

Re: Changing Comment ; to // ?
Posted: Thu Oct 25, 2012 5:59 pm
by Kwai chang caine
skywalk wrote:I'll throw in another version for:
block commenting
line continuation

Yes yes ....line continuation..line continuation
+100
