|
||||||
|
Views:
16,833,487 |
![]() ![]() ![]()
Main
| FAQ
| IRC chat
| Memberlist
| Active users
| Latest posts
| Stats
| Ranks
| Online users
| Search
|
10-25-25 12:11 AM |
||||
| Guest: Register | Login | ||||||
| 0 users currently in AcmlmBoard II Software/Bug Report Forum | 3 bots |
| Main - AcmlmBoard II Software/Bug Report Forum - How does [code] tag syntax highlighting work? |
| NightKev |
| ||
|
Normal User
Level: 30 Posts: 46/169 EXP: 152477 Next: 13392 Since: 08-17-12 Last post: 4334 days Last view: 4193 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:
|
| Scrydan |
| ||
|
Normal User
Scryforce - A place that still exists. Neat. Level: 87 Posts: 861/2020 EXP: 6320591 Next: 72183 Since: 07-18-12 From: USA Last post: 1319 days Last view: 1302 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 |
| ||
|
Normal User
Level: 30 Posts: 52/169 EXP: 152477 Next: 13392 Since: 08-17-12 Last post: 4334 days Last view: 4193 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 |
| ||
|
Normal User
Scryforce - A place that still exists. Neat. Level: 87 Posts: 862/2020 EXP: 6320591 Next: 72183 Since: 07-18-12 From: USA Last post: 1319 days Last view: 1302 days |
Hmm, good idea. When I take a closer look, I'll implement the [code=laugage] idea. ![]() |
| Lili~ ♥ |
| ||
|
Normal User
Queen Lesbian of Kafuka Level: 162 Posts: 2213/8412 EXP: 54775386 Next: 515890 Since: 01-06-12 Last post: 3301 days Last view: 1823 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 |
| ||
|
Normal User
Goomba Level: 13 Posts: 14/27 EXP: 9763 Next: 504 Since: 07-22-12 Last post: 4250 days Last view: 4250 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...). |
| Main - AcmlmBoard II Software/Bug Report Forum - How does [code] tag syntax highlighting work? |
Acmlmboard v2.5.6 (06/11/2024) © 2005-2025 Acmlm, Emuz, et al. |
|
MySQL - queries: 92, rows: 510/544, time: 0.794 seconds. |