News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Maggie Nelson's Blog:
Finally, pretty syntax highlighting for blog posts!
March 02, 2009 @ 12:52:27

Maggie Nelson points out a cool way that you TextMate users out there can get better syntax highlighted code for your blog posts.

A coworker, Craig Campbell just launched a new blog recently. One of the really neat things about his blog is how he handles syntax highlighting for code samples - check out examples in his interesting post about Cool Object Building with PHP. In fact, he got so many good comments about this approach that he even wrote a post explaining exactly how he does it: Syntax Highlighting for Your Blog Using TextMate.

Craig's process is as simple as selecting the TextMate bundle and choosing "Create HTML from Document with Line Numbers". The resulting output takes a little tweaking in the HTML and CSS, but the end result is quite nice (and better than several of the syntax highlighting plugins out there).

0 comments voice your opinion now!
blog syntax highlight textmate export html css


blog comments powered by Disqus

Similar Posts

NETTUTS.com: 3 Ways to Speed up Your Site with PHP

Vinu Thomas' Blog: Wordpress blogging on a S60 Phone

CSS-Tricks.com: Using Weather Data to Change Your Website’s Appearance through PHP and CSS

Padraic Brady's Blog: Example Zend Framework Blog Application Tutorial: Parts 1-8 Revisited

Tim Koschuetzki's Blog: How To Transform HTML To Textile Markup - The CakePHP TextileHelper Revisite


Community Events











Don't see your event here?
Let us know!


introduction unittest framework podcast security facebook component overview example hhvm application package symfony2 opinion hack code release composer language install

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework