Search Unity

Feedback Suggest detecting unformatted code in new thread posts

Discussion in 'Meta-forum Discussion' started by Joe-Censored, Apr 14, 2021.

  1. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    I'd like to suggest that when a new thread is created, especially by someone with a very low post count, that the forum scans the original post for a possible unformatted code dump. If detected, give an appropriate error message instead of creating the thread.

    The check for unformatted code could be as simple as counting the number of lines which end with a semicolon ";". If that number is equal to or greater than 5, and no opening [ CODE] tag exists in the post, pop up error message.

    That simple of a test would likely catch 99% of these kinds of posts with a very low false positive rate (does anyone end 5 or more lines of text with a semicolon outside of programming?), and would not only help out other forum users, but also the person posting the thread. Since it is less likely people get help with their issues when code is near unreadable.
     
    SparrowGS, Vryken and Lurking-Ninja like this.