• Post Reply Bookmark Topic Watch Topic
  • New Topic

Source Code Detection  RSS feed

 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I took things seriously, the ratio of my meaningful posts to a single liner posts ("please use the *code* UBB tag when posting code") would approach zero over time. New people come to JR all the time, and the threads are full of unformatted code.
What I suggest is a "code detection" functionality, when a post is submitted. There would be some challenge for the "auto detect" to determine where the code starts and ends in the post, but it's certainly not impossible. Once the bounds are determined, the portion of the post deemed as code would be wrapped up by the UBB code automatically.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting idea. Perhaps worth contemplating as an enhancement after we get a new system up and running, having attended to other more basic functionality. (Yet another thing I wouldn't want to attach to UBB.) I'd suggest that (unless it has really good AI) it shouldn't just automatically slap code tags around "suspected code", but should instead say something like "You post appears to include Java code which has not been formatted with [ code ] tags. Do you with to: (1) Edit your post (2) Submit now as is". Something like that.
 
Mani Ram
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more suggestion:
To filter the subject field of topics for the words like 'HELP', 'URGENT' etc
 
Mani Ram
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And another:
To detect whether a same user is posting a same question in multiple forums. How is that?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!