couchdb-marketing mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <...@jsonified.com>
Subject including code / syntax highlighting in blog posts
Date Fri, 11 Jul 2014 20:36:12 GMT
> 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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message