Notings of Attention™
Acmlmboard 2 Released
Github/GIT | @acmlmboard
Chatting Places
Discord

Affiliates
Super Mario Bros. X | Kuribo64 | NeoRHDN
Views: 11,099,329
Main | FAQ | IRC chat | Memberlist | Active users | Latest posts | Stats | Ranks | Online users | Search
12-03-24 07:09 PM
Guest: Register | Login

0 users currently in AcmlmBoard II Software/Bug Report Forum | 1 bot

Main - AcmlmBoard II Software/Bug Report Forum - How does [code] tag syntax highlighting work?
Next newer thread | Next older thread


NightKev
Posted on 09-19-12 10:17 AM, in Link | ID: 26918
Normal User

Level: 29


Posts: 46/169
EXP: 147240
Next: 645

Since: 08-17-12

Last post: 4009 days
Last view: 3867 days
Does it assume PHP? Is there a way to specify which language is being used?

Also, it doesn't seem to preserve spaces, which seems odd. Example:

no indent
two space indent
four space indent



Scrydan
Posted on 09-21-12 09:11 PM, in Link | ID: 27014
Normal User
Scryforce - A place that still exists. Neat.
Level: 86


Posts: 861/2020
EXP: 6104863
Next: 37244

Since: 07-18-12
From: USA

Last post: 994 days
Last view: 977 days
I am not sure exactly myself. I'll assume PHP but I'd need to take a closer look.

And when I revamp bbcode and add my improved system, it will take space properly because having no space is annoying to me.

NightKev
Posted on 09-21-12 09:13 PM, in Link | ID: 27016
Normal User

Level: 29


Posts: 52/169
EXP: 147240
Next: 645

Since: 08-17-12

Last post: 4009 days
Last view: 3867 days
Make sure it allows you to select which language (incl. plain text aka none) you want it to highlight for (ie: [code=PHP] etc). :)


Scrydan
Posted on 09-21-12 09:14 PM, in Link | ID: 27017
Normal User
Scryforce - A place that still exists. Neat.
Level: 86


Posts: 862/2020
EXP: 6104863
Next: 37244

Since: 07-18-12
From: USA

Last post: 994 days
Last view: 977 days
Hmm, good idea. When I take a closer look, I'll implement the [code=laugage] idea. :D

Lili~ ♥
Posted on 09-21-12 09:17 PM, in Link | ID: 27019
Normal User
Queen Lesbian of Kafuka
Level: 161


Posts: 2213/8412
EXP: 52978888
Next: 1134229

Since: 01-06-12

Last post: 2975 days
Last view: 1498 days
And, of course, it should default to no language. See the IRC logs to see how the syntax highlighting makes them look pretty amusing.


GlitchMr
Posted on 11-02-12 07:17 PM, in Link | ID: 28599
Normal User

Goomba

Level: 13


Posts: 14/27
EXP: 9429
Next: 838

Since: 07-22-12

Last post: 3925 days
Last view: 3925 days
It doesn't preserve whitespaces because it isn't in <pre>. Also, I think what is done is generalized highlighting that attempts to match as many languages as possible. no is a keyword in Perl, so I think this is why it's highlighted (but bless is keyword too...).

Next newer thread | Next older thread
Main - AcmlmBoard II Software/Bug Report Forum - How does [code] tag syntax highlighting work?


Acmlmboard v2.5.6 (06/11/2024)
© 2005-2024 Acmlm, Emuz, et al.

Page rendered in 0.062 seconds. (786KB of memory used)
MySQL - queries: 92, rows: 504/536, time: 0.050 seconds.