Editing posts containing codes

Nikronic: <p>Hi,</p>
<p>I usually see posts mainly by new users that forgot to format sections with code or even sometimes they try and because of existence of “```” in their code due to docstrings, it gets partially formatted and make it hard to understand (indentation no longer exists in the first case).<br>
I wonder it is possible to enable users from level of <em><strong>member</strong></em> to be able to edit posts or even creating another attribute for users with enough number of verified edits?</p>
<p>I have also some other ideas that I do not know it is friendly enough or not.</p>
<ol>
<li>Forcing new users to finish forum tutorial to make sure they are aware of formatting system or the main guidelines.</li>
<li>Sending a warning to users when they try to paste texts longer than one line in a post about it that can format codes to enhance readability.</li>
</ol>
<p>Thank you all for creating such a great community!<br>
Bests</p>

GokulNC: <p>Since this forum is hosted on Discourse, we could install the following component:<br>
</p><aside class="onebox allowlistedgeneric">
  <header class="source">
      <img src="https://github.githubassets.com/favicons/favicon.svg" class="site-icon" width="16" height="16">
      <a href="https://github.com/gschlager/unformatted_code_detector" target="_blank" rel="nofollow noopener">GitHub</a>
  </header>
  <article class="onebox-body">
    <img src="https://avatars1.githubusercontent.com/u/473736?s=400&amp;v=4" class="thumbnail onebox-avatar" width="60" height="60">

<h3><a href="https://github.com/gschlager/unformatted_code_detector" target="_blank" rel="nofollow noopener">gschlager/unformatted_code_detector</a></h3>

<p>Discourse theme component to detect and warn users about unformatted code - gschlager/unformatted_code_detector</p>


  </article>
  <div class="onebox-metadata">
    
    
  </div>
  <div style="clear: both"></div>
</aside>


Nikronic: <p>This clearly solves the issue. Here is the link to original author’s discussion.<br>
</p><aside class="onebox allowlistedgeneric">
  <header class="source">
      <img src="https://d11a6trkgmumsb.cloudfront.net/optimized/3X/b/3/b33be9538df3547fcf9d1a51a4637d77392ac6f9_2_32x32.png" class="site-icon" width="15" height="15">
      <a href="https://meta.discourse.org/t/unformatted-code-detector-theme-component/112773" target="_blank" rel="nofollow noopener" title="04:21AM - 28 March 2019">Discourse Meta – 28 Mar 19</a>
  </header>
  <article class="onebox-body">
    <div class="aspect-image" style="--aspect-ratio:104/87;"><img src="https://d11a6trkgmumsb.cloudfront.net/optimized/3X/6/2/624f9c962a946aaca83e69be73a30f3346e08a09_2_1024x857.gif" class="thumbnail" width="104" height="87"></div>

<h3><a href="https://meta.discourse.org/t/unformatted-code-detector-theme-component/112773" target="_blank" rel="nofollow noopener">Unformatted Code Detector theme component</a></h3>

<p>Links  GitHub repo Live demo Installation instructions  Usage    After installation, users posting unformatted code will see a warning message instructing them how to format it correctly.  Sensitivity and whether it detects HTML are configurable via...</p>

  <p><span class="label1">Reading time: 3 mins 🕑</span>
    <span class="label2">Likes: 96 ❤</span></p>

  </article>
  <div class="onebox-metadata">
    
    
  </div>
  <div style="clear: both"></div>
</aside>