I'm writing blog posts for my company blog and I would like code snippets to show up with syntax highlighting.
All I can do is write html/css.
Is there any app/webapp that will let me paste in a c++ code snippet and get a chunk of html with the highlighting?
The <mark> tag in HTML is used to define the marked text. It is used to highlight the part of the text in a paragraph.
Highlight using the HTML5 <mark> tag If you are working on an HTML5 page, the <mark> tag can quickly highlight text. Below is an example of the how to use the mark tag and its result. If your browser supports the <mark> tag, "highlighted text" should have a yellow background.
Try this Online syntax highlighting Site, and especially the C++ section.
You paste in your code and it does the hard work.
I use emacs M-Xhtmlize-bufferRET. Also enscript is very powerful to generate colorized HTML from many source code formats.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With