Page 1 of 1
PureBasic Code
Posted: Thu May 04, 2023 1:50 pm
by Piero
When posting code on this Forum, replace the opening code tag
[code
] with
[code=purebasic
]
If you need to publish your PureBasic code (and not only!) on a web page, I suggest
Highlight

Re: PureBasic Code
Posted: Tue May 16, 2023 10:08 pm
by BarryG
Whatever.
Re: PureBasic Code
Posted: Tue May 16, 2023 10:23 pm
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.
Re: PureBasic Code
Posted: Tue May 16, 2023 11:08 pm
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.
Re: PureBasic Code
Posted: Wed May 17, 2023 1:08 am
by Demivec
The same information was also posted in the Mac OSX forum.
https://www.purebasic.fr/english/viewtopic.php?t=81549
Re: PureBasic Code
Posted: Wed May 17, 2023 11:03 am
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
Re: PureBasic Code
Posted: Wed May 17, 2023 12:53 pm
by Fred
It was announced here:
viewtopic.php?t=77366
Re: PureBasic Code
Posted: Wed May 17, 2023 1:51 pm
by luis
Thanks, I missed it.
Re: PureBasic Code
Posted: Wed May 17, 2023 6:15 pm
by Caronte3D
Should be default

Re: PureBasic Code
Posted: Wed May 17, 2023 7:16 pm
by luis
Caronte3D wrote: Wed May 17, 2023 6:15 pm
Should be default
Fred tried but it doesn't seem possible (or at least not easily).
https://www.phpbb.com/community/viewtop ... #p15717611
Re: PureBasic Code
Posted: Sun May 21, 2023 5:58 pm
by Crusiatus Black
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
Re: PureBasic Code
Posted: Mon May 22, 2023 5:55 am
by Fred
Interesting!
Re: PureBasic Code
Posted: Wed Jun 21, 2023 11:35 pm
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.