PureBasic Code

Everything else that doesn't fall into one of the other PB categories.
User avatar
Piero
Addict
Addict
Posts: 865
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

PureBasic Code

Post by Piero »

When posting code on this Forum, replace the opening code tag [code] with [code=purebasic]

Code: Select all

Debug "Hello World!"

If you need to publish your PureBasic code (and not only!) on a web page, I suggest Highlight
Image
BarryG
Addict
Addict
Posts: 4123
Joined: Thu Apr 18, 2019 8:17 am

Re: PureBasic Code

Post by BarryG »

Whatever.
Last edited by BarryG on Wed May 17, 2023 8:46 am, edited 1 time in total.
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: PureBasic Code

Post by luis »

Actually I didn't know you could specify "PureBasic" in the code tag, I always seen code posted as plain text.
Maybe I missed it ?
Is that something that has been added in the installation of this forum ?
I doubt phpBB came with PB syntax coloring preinstalled.
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: PureBasic Code

Post by skywalk »

Nice tip!
The forum code window buttons are on top of each other.
Purebasic
Text
But now I know we can post in purebasic directly.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: PureBasic Code

Post by Demivec »

The same information was also posted in the Mac OSX forum.

https://www.purebasic.fr/english/viewtopic.php?t=81549
Last edited by Demivec on Wed May 17, 2023 4:45 pm, edited 1 time in total.
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: PureBasic Code

Post by luis »

luis wrote: Tue May 16, 2023 10:23 pm Is that something that has been added in the installation of this forum ?
I doubt phpBB came with PB syntax coloring preinstalled.
Dear Luis, It seems it originated from here
https://www.phpbb.com/community/viewtop ... #p15717826
"Have you tried turning it off and on again ?"
A little PureBasic review
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic Code

Post by Fred »

It was announced here: viewtopic.php?t=77366
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: PureBasic Code

Post by luis »

Thanks, I missed it.
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
Caronte3D
Addict
Addict
Posts: 1355
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: PureBasic Code

Post by Caronte3D »

Should be default :wink:
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: PureBasic Code

Post by luis »

Caronte3D wrote: Wed May 17, 2023 6:15 pm Should be default :wink:
Fred tried but it doesn't seem possible (or at least not easily).

https://www.phpbb.com/community/viewtop ... #p15717611
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
Crusiatus Black
Enthusiast
Enthusiast
Posts: 389
Joined: Mon May 12, 2008 1:25 pm
Location: The Netherlands
Contact:

Re: PureBasic Code

Post by Crusiatus Black »

Fred wrote: Wed May 17, 2023 12:53 pm It was announced here: viewtopic.php?t=77366
Interesting, I see that someone took code from my CodePen and merged it into Prism.js
-> https://github.com/PrismJS/prism/blob/m ... rebasic.js

Comes from https://codepen.io/ImagineProgramming/details/JYydBy/ originally.

Great to see it found its way to the PureBasic forums
Image
Bas Groothedde,
Imagine Programming

I live in a philosophical paradoxal randome filled with enigma's!
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic Code

Post by Fred »

Interesting!
User avatar
Piero
Addict
Addict
Posts: 865
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: PureBasic Code

Post by Piero »

Fred wrote: Mon May 22, 2023 5:55 amInteresting!
I just found this Fred, and all I can say is that you're very lucky I consider you as a genius; otherwise I would have answered very differently.
Post Reply