« gmail and marketer control | Main | i know i'm not the only one »

Sep 04, 2004

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Barak

How geeky can you get? Just showing off?

Paul Kalupnieks

For the extra-tasty goodness of Smarypants, download Smartypants and pipe through Smartypants.pl the same way.

getclip | Markdown.pl | Smartypants.pl | putclip

Fixes those single and double quotes as well as the ever-pervasive ellipsis (...)

This combo has been a boon to my productivity at work when having to mark up content documents.

Andrew White

Try this one:

Create a batch file called "markdown.bat". Stick the following in it:

C:\cygwin\bin\getclip.exe | C:\cygwin\bin\perl.exe C:\cygwin\home\{USER}\bin\Markdown.pl | C:\cygwin\bin\perl.exe C:\cygwin\home\{USER}\bin\Smartypants.pl | C:\cygwin\bin\putclip.exe

You'll need to edit paths as necessary.

Now you don't even need Cygwin open. I'm just trying to figure out a way to use AutoHotKey to call this batch file so I can just drag a selection, run that selection through Markdown/Smartypants, and then replace the selection with the HTML.

Aristotle

Of course you don't need actually need Cygwin at all, an ActivePerl install will do just fine. See http://downloads.activestate.com/ActivePerl/Windows/

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment