I finally found – not a widget, but the special WordPress sourcecode
shortcode
[sourcecode language=”cpp”]
your code here
I finally found – not a widget, but the special WordPress sourcecode
shortcode
[sourcecode language=”cpp”]
your code here
Hm, WordPress doesn’t know that “operator” is a keyword in C++. Oh well. I guess one should just go with the flow, the alternative being to purchase some web hosting services or find a free host (and the free ones never last very long).
It looks nicely formatted on Google Reader but the syntax highlighting is missing.
I discovered that WordPress [sourcode] does the code formatting client-side via JavaScript, instead of in PHP at the server.
Pingback: cppx: Ownership with custom deleter. | Alf on programming (mostly C++)
Pingback: New sourcecode formatting « C++ on a Friday
Thanks for the example and source code, exactly what I was looking for, very informative!!
Pingback: What's a good Wordpress extension for coloring C/C++/script code? [closed] - ExceptionsHub