The SmartyPants Plugin

John Gruber of Daring Fireball has released a new Movable Type plugin, aptly named SmartyPants. It is written specifically for educating quotes, apostrophes, dashes, elipses and other dull ASCII characters into their typographically-correct, HTML entity equivalents. Since I got to help beta test it, I installed it a few days ago on my site and it's been working very nicely ever since. Now my writing looks a little more professional even if it doesn't read that way.

I avoided adopting previous attempts at creating 'smarty quote' solutions, mainly because they didn't respect <pre> and <code> blocks. At my request, John has enforced this rule into SmartyPants, so content within those tags will not be altered. This is important to me because I use <pre> blocks all the time for code samples. If the quote characters in those samples were changed to be typographic symbols, you couldn't copy and paste them if you wanted to use the code. (Well you could, but it would be a pain to have to edit them all back to simple characters.) Here's how you use this thing:

<$MTEntryBody smarty_pants="1"$>

It's that easy.

TrackBack

TrackBack URL for this entry:
http://bradchoate.com/mt/feedback/tb/447

Listed below are links to weblogs that reference The SmartyPants Plugin:

» SmartyPants Plugin from For What It's Worth
Brad Choate reports on the release of the SmartyPants plugin for MovableType. This nice little plugin will convert boring old [Read More]

» SmartyPants Plugin from mini-d
SmartyPants Plugin es un plug-in para MT que fue presentado por Brad pero creado por John Gruber de Daring Fireball, [Read More]

» Got me by the curly quotes from ***Dave Does the Blog
I'm playing with yet another MT plug-in, Smarty Pants, which automagically displays blog posts with curly ("smart," or typographer's) quotes, [Read More]

» Got me by the curly quotes from ***Dave Does the Blog
I'm playing with yet another MT plug-in, Smarty Pants, which automagically displays blog posts with curly ("smart," or typographer's) quotes, [Read More]

» Got me by the curly quotes from ***Dave Does the Blog
I'm playing with yet another MT plug-in, Smarty Pants, which automagically displays blog posts with curly ("smart," or typographer's) quotes,... [Read More]

» Smarty Pants from ruri-chan.org - A Man and His Cat
After reading Brad Choate's article on the Smarty Pants plugin, I thought I would give it a "whirl". The...seemingly...needless punctuation -- there is.... [Read More]

About

This article was published on November 13, 2002 2:05 PM.

The article previously posted was Blogging in Reverse.

The next article is One Cent Mail Server.

Many more can be found on the home page or by looking through the archives.

Powered by Movable Type