You are viewing a plain text version of this content. The canonical link for it is here.
Posted to marketing@couchdb.apache.org by Dave Cottlehuber <dc...@jsonified.com> on 2014/07/11 22:36:12 UTC

including code / syntax highlighting in blog posts

> All I know about adding code to WP posts is this: http://codex.wordpress.org/Writing_Code_in_Your_Posts 
> L. 

TL;DR write the post in “text” mode using markdown style formatting:

``` erlang
fun() -> ok.
```

or:

[code language="javascript"]
http.createServer(function (req, resp) {});
[/code]

More info:
https://gist.github.com/dch/6e2214526371827aaf24 or http://en.support.wordpress.com/code/posting-source-code/

—  
Dave Cottlehuber
Sent from my Couch