Suggestion to site admins - automation of "</>" icon or Alt+S

 

Just a thought but we frequently see people putting code into their post without using the  "</>" icon or Alt+S functions - it often results in the more experienced participants asking them to re-post using this method.

Is there a way to create an optimization in this site so when someone does try and post code it automatically detects it and puts it into  "</>" icon or Alt+S format, or at least warns the user?

I appreciate it could be hard to detect, but identifying any lines which contain MQL reserved words, operators, brackets, ... may do the trick (excluding obvious English terms such as if, else, while, do, etc)

Hope it is feasible

 
R4tna C: Just a thought but we frequently see people putting code into their post without using the  "</>" icon or Alt+S functions - it often results in the more experienced participants asking them to re-post using this method. Is there a way to create an optimization in this site so when someone does try and post code it automatically detects it and puts it into  "</>" icon or Alt+S format, or at least warns the user? I appreciate it could be hard to detect, but identifying any lines which contain MQL reserved words, operators, brackets, ... may do the trick (excluding obvious English terms such as if, else, while, do, etc). Hope it is feasible

Such automation is only going to be a hassle any time the "autodetection" fails and messes up a post.

Notice how the current autodetect for links is constantly causing issues. Every time it detects a special keyword, it adds a link for it and many times it is totally irrelevant, which requires the poster to re-edit the post to remove it, only for it to detect yet another word for a link, making it a pain to re-edit a post several times just to clean up all those irrelevant links.

Can you now imagine the chaos of it autodetecting code in the wrong places, over and over again? No thank you!

 
Fernando Carreiro #:

Such automation is only going to be a hassle any time the "autodetection" fails and messes up a post.

Notice how the current autodetect for links is constantly causing issues. Every time it detects a special keyword, it adds a link for it and many times it is totally irrelevant, which requires the poster to re-edit the post to remove it, only for it to detect yet another word for a link, making it a pain to re-edit a post several times just to clean up all those irrelevant links.

Can you now imagine the chaos of it autodetecting code in the wrong places, over and over again? No thank you!

In that case, a warning to the user could be a better option so they can choose

Reason: