title: Syntax highlighting editor with PyQt5
body: <p>I'm currently working on an PyQt5 based application I could use an (embedded) editor for which provides some syntax highlighting for YAML (and maybe JSON).</p>
  
  <p>I expected Qt to have some built-in capabilities for this but all I found were some discussions and some hand-made implementations like <a href="https://wiki.python.org/moin/PyQt/Python%20syntax%20highlighting" rel="nofollow noreferrer">this one</a>.</p>
  
  <p>Isn't there a simple way to activate syntax highlighting on an existing widget? Or maybe a compact 3rd party widget I might use?</p>