Page 1 of 1

Bug of [code][/code]

Posted: October 13th, 2026, 2:22 am
by g0t0

Code: Select all

#include <iostream>

int main() {
    std::cout << "Hello, world" << std::endl;
    return 0;
}
"Show Pattern Error"?

Re: Bug of [code][/code]

Posted: October 13th, 2026, 6:29 am
by 1and0nlycordershippr
g0t0 wrote: October 13th, 2026, 2:22 am

Code: Select all

#include <iostream>

int main() {
    std::cout << "Hello, world" << std::endl;
    return 0;
}
"Show Pattern Error"?
That’s code in C++.
For no “show pattern error”, use an RLE.

Re: Bug of [code][/code]

Posted: October 13th, 2026, 7:49 am
by rowett
g0t0 wrote: October 13th, 2026, 2:22 am "Show Pattern Error"?
The forum checks each code block to see if it contains a pattern that can be displayed. If the code block starts with # it assumes it must be RLE for a pattern and in this case it isn't so it adds the error link. To avoid this just start your code with something else:

Code: Select all

// my hello world program
#include <iostream>

int main() {
    std::cout << "Hello, world" << std::endl;
    return 0;
}

Re: Bug of [code][/code]

Posted: October 13th, 2026, 10:09 am
by Vort
Why not limit such checks to [pattern] tag?

Re: Bug of [code][/code]

Posted: October 13th, 2026, 10:45 am
by hotdogPi
Vort wrote: October 13th, 2026, 10:09 am Why not limit such checks to [\pattern] tag?
I still use code tags regularly for patterns. It would also break everything before maybe 2022 or so (not sure of the exact year), since the pattern tag is fairly recent.

Re: Bug of [code][/code]

Posted: October 14th, 2026, 7:49 pm
by hotcrystal0
hotdogPi wrote: October 13th, 2026, 10:45 am
Vort wrote: October 13th, 2026, 10:09 am Why not limit such checks to [\pattern] tag?
I still use code tags regularly for patterns. It would also break everything before maybe 2022 or so (not sure of the exact year), since the pattern tag is fairly recent.
It was actually in 2024, so it's more recent than you think it was/