Html code converter

What is a free free tool (both online and offline) for converting code (it can also be HTML code), a piece of text (already formatted) to html with code highlighting (at least keywords) and preserving the original formatting (how and html snippet) so you can embed it in your blog?

+3
source share
4 answers

If you use WordPress, I can recommend this extension . This should be exactly what you are looking for.

Just an example taken from the page:

enter image description here

+1
source

google-prettify - , SO. javascript ( Plone)

+1

You can do it in your own studio. create an empty html file and copy the code what you want. then paste it into the design view of the temporary html file created above. it will generate syntax highlighting formatting.

+1
source

I use SyntaxHighlighter , which works well on BlogSpot.

+1
source

Source: https://habr.com/ru/post/1792173/


All Articles