Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Feedback Suggest detecting unformatted code in new thread posts

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

  1. Joe-Censored


    Mar 26, 2013
    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.