C ++ html generator syntax highlighting

I write blog posts for my company blog, and I would like code snippets to be displayed with syntax highlighting.

All I can do is write html / css.

Is there a / webapp application that will allow me to insert a C ++ code snippet and get a html snippet with highlighting?

+5
source share
4 answers

Try the Internet syntax that makes the site stand out , and especially the C ++ section .

You embed your code and do the hard work.

+6
source

For others who are looking for a solution to this problem - you should check:

http://oneqonea.blogspot.com/2012/04/how-do-i-add-syntax-highlighting-to-my.html

"SyntaxHighlighter Blogger" .

.

, ++ , shBrushCpp.js, <head> </head> :

<head>
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js' type='text/javascript'/>
</head>
+1

I am using emacs M-Xhtmlize-buffer RET. In addition, enscript is very powerful for creating colorized HTML from many source code formats.

0
source

Take a look at http://www.syntaxhighlight.com - support for 222 languages. Paste your code and get formatted html.

0
source

All Articles