From jsanda at redhat.com Thu Aug 20 11:09:55 2015 Content-Type: multipart/mixed; boundary="===============7280836170957844060==" MIME-Version: 1.0 From: John Sanda To: rhq-devel at lists.fedorahosted.org Subject: syntax highlighting for blogs Date: Wed, 13 Jun 2012 00:47:28 -0400 Message-ID: <4FD81B60.5000809@redhat.com> --===============7280836170957844060== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable If you do any blogging where you include any kind of source code in your = posts, then the following may be of interest to you. I have a pretty = simple set up using blogger. I configured my blog to use = SyntaxHighlighter. It is all client side, and it was a bit of a pain to = set up. That criticism might however be better directed at blogger. I = noticed on some of the aggregate feeds like at planet.jboss.org and now = at jboss.org/rhq that the highlighting is lost. The highlighting also = doesn't render so great on mobile devices. Earlier this evening I = switched over to using gist.github.com. If you are not familiar with = gist, it is similar to pastebin. There are some really nice things about = gist though. Every gist is a git repo that can be cloned or forked. You = can make edits and add comments as well. It has nice syntax highlighting = for quite a large number of languages. Including a gist in your blog = only involves a few simple steps: * Create the gist. * Click on the "embed" link in the upper right corner of the gist window. * Copy and past the link into your post. The link looks something like