Page 2 of 4

Re: Syntax highlightning on the forums

Posted: Wed Jun 02, 2021 6:17 am
by Marc56us
Seymour Clufley wrote: Wed Jun 02, 2021 12:40 am This is a great idea. But please, please, don't use the default IDE color scheme! LOL
Yes, please stop using yellow background and courier font, this remind Windows 3.x and 95' applications.

:idea: It would be nice to use the SpiderBasic theme (also in PB IDE and help chm: Consolas font on White background.)

:wink:

Re: Syntax highlightning on the forums

Posted: Wed Jun 02, 2021 7:07 am
by Lord
Seymour Clufley wrote: Wed Jun 02, 2021 12:40 am ... don't use the default IDE color scheme! ...
-1
The color scheme is eye friendly! It is PureBasic!

Re: Syntax highlightning on the forums

Posted: Wed Jun 02, 2021 11:31 am
by ChrisR
This is a great option, very useful for reading the code :)
I'm not really a fan of the theme either, but well, tastes and colors...

I think it would be good to have it by default for [ code ] [ /code ] tags
without the need to go through other [ code-pb ] [ /code-pb ] tags.
If the latter remains, it would be good to have a corresponding button, next to "code display [ code ]code[ \code ]" button, when writing posts

Re: Syntax highlightning on the forums

Posted: Thu Jun 03, 2021 6:15 pm
by STARGĂ…TE
I don't know, if it is just my impression, but it seems like, the syntax highlighting of the forum is much slower in evaluation than my script.
If I compare similar codes here in the english forum (with the new code highlighting) and codes in the german forum (with my script), my code runs nearly instantly.

I think the problem is, that the syntax highlighting of the forum is 500 kB huge, with many unused languages but the code has to be parsed.
Can you remove all languages except PB?

Re: Syntax highlightning on the forums

Posted: Fri Jun 04, 2021 8:47 am
by Fred
It uses prism.js, and I don't really want to mess with it...

Re: Syntax highlightning on the forums

Posted: Fri Jun 04, 2021 1:35 pm
by skywalk
Is this the right place to post a Forum bug?
Plain Text / PB / Copy buttons overlap!
I cannot insert an image directly!! :evil:
buttons overlap on Chrome latest.

Re: Syntax highlightning on the forums

Posted: Sun Jun 06, 2021 10:57 am
by Mijikai
Not sure where to post this...
The syntax highlighting doesnt like #Null$ its wrong.

Example:

Code: Select all

#Null$

Re: Syntax highlightning on the forums

Posted: Wed Jun 09, 2021 2:46 pm
by Fred
It won't be perfect, it's mostly to have basic coloring

Re: Syntax highlightning on the forums

Posted: Wed Jun 09, 2021 5:13 pm
by skywalk
Hi Fred, any chance to fix the buttons in the code window?

Re: Syntax highlightning on the forums

Posted: Wed Jun 09, 2021 9:06 pm
by Fred
It's a phpbb plugin, I have no clue how to fix this.

Re: Syntax highlightning on the forums

Posted: Tue Jul 13, 2021 8:17 am
by HeX0R
Mijikai wrote: Sun Jun 06, 2021 10:57 am Not sure where to post this...
The syntax highlighting doesnt like #Null$ its wrong.

Example:

Code: Select all

#Null$
Just fix in on your own -> https://github.com/PrismJS/prism/blob/m ... rebasic.js

Re: Syntax highlightning on the forums

Posted: Fri Jul 16, 2021 7:16 pm
by Mijikai
HeX0R wrote: Tue Jul 13, 2021 8:17 am
Just fix in on your own -> https://github.com/PrismJS/prism/blob/m ... rebasic.js
Thats not an option hence my post.

Re: Syntax highlightning on the forums

Posted: Thu Aug 19, 2021 12:39 pm
by Mijikai
Syntax highliting for ForEver is also wrong:

Code: Select all

EnableExplicit
ForEver

Re: Syntax highlightning on the forums

Posted: Thu Aug 19, 2021 1:02 pm
by HeX0R
Again:
This is the highliter from PRISM (see my link) and out of Freds hands.
I made the initial highliter for prism once in the past for my own need, and I'm fine with it.
And you are not willing to change it (no option you said), so, live with it or wait until someone else fixes it.

Re: Syntax highlightning on the forums

Posted: Thu Aug 19, 2021 2:09 pm
by Mijikai
HeX0R wrote: Thu Aug 19, 2021 1:02 pm no option you said
U read that correctly - i would do it but i cant.