[syntax_highlight] Support XHTML based markup
- Gajim Version: 1.1.2 / master
- Plugin Version: >= 1.0.0
- Operating System: all
In a discussion in gajim@conference.gajim.org, the wish for syntax highlighting with XHTML based markup came up. Possible XEPs:
- XEP-0071 (XHTML-IM), (state: deprecated, supported by gajim)
- XEP-0394 (Message Markup), (state: deferred, not supported by gajim)
excerpts from discussion in gajim@conference.gajim.org (2019-02-28):
for incoming text xhtml should have priority, if it is in the received message and enabled on receiver's side. if either does not apply, the plain text + markup should be used
the generally recommended way for code is
<pre><code class="language-python">print('Hello world!')</code></pre>
, and that’s what poezio sends (with coloured spans inside, but that you can ignore if you do your own rendering).