S
S
Stepan Sidorov2020-10-30 09:15:37
XML
Stepan Sidorov, 2020-10-30 09:15:37

How to make block-code in XML?

Hello.
I have a task in python to make a Docx document. The Docx document uses block-code which I need to display nicely. In the library I use, you can use this kind of XML

<w:cantSplit/>
   <w:trHeight w:val="1450"/>
 /w:trPr
 <w:tc>
   <w:tcPr>
     <w:tcW w:w="4893" w:type="dxa"/>

And I need to find how to make a code-block in such XML, preferably with highlighting, because. the challenge is to make it beautiful.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stepan Sidorov, 2020-10-30
@always-prog

There is an answer, a ready-made solution for text highlighting.
https://stackoverflow.com/questions/61801936/set-b...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question