Hi Tom

That all sounds great but from what I've read TextWrangler only runs on Mac OSX. I'm basically an emacs user. That shouldn't matter though if I set up the basic perl script you to refer to as something I can run from the command line. Can you tell me which file in the Markdown distribution is the basic perl script? The situation you describe is exactly what I'm looking for. I imagine with a little digging that I could get the same setup in emacs tthat you have in TextWrangler with a little work.

Thanks very very much in advance and please forgive my ignorance.

Best regards,
Mike

On 13/12/2012 22:55, Thomas Humiston wrote:
I put a copy of the basic perl script in TextWrangler's 'Unix filters' folder*, 
renamed it as 'Convert Markdown to HTML.pl', and assigned it a keyboard 
shortcut of Ctrl-H.

So, when I type Markdown-style text** in TextWrangler and hit Ctrl-H, it 
immediately converts to HTML. If I have selected a portion of the text, only 
that portion gets converted; otherwise everything. No server involved. And 
subject to Undo.

In like manner, I use html2text.py (renamed as 'Convert HTML to Markdown.py' 
and assigned Ctrl-M) to convert in the other direction.

- Tom

*I'm using an old version of TextWranger, v3.5.1. I think in v4 this 
arrangement got changed; see the documentation.
**http://daringfireball.net/projects/markdown/


On Dec 13, 2012, at 5:40 PM, mike wrote:

Hi

Is it possible to run Markdown the app standalone, that is, not as part of a 
webserver.  So the model would be write a file in Markdown and then use the 
Markdown app to convert the file into (x)html for local browsing in a browser.

I want to learn Markdown before I have to go through the pain of setting up a 
webserver.  I have been trying to get jetty working on Fedora 16 but keep 
getting errors.  For the moment I would just need a webserver on my development 
machine that the Internet doesn't see.

Thanks in advance for any help.

Best,
Mike
_______________________________________________
Markdown-Discuss mailing list
[email protected]
http://six.pairlist.net/mailman/listinfo/markdown-discuss
_______________________________________________
Markdown-Discuss mailing list
[email protected]
http://six.pairlist.net/mailman/listinfo/markdown-discuss



_______________________________________________
Markdown-Discuss mailing list
[email protected]
http://six.pairlist.net/mailman/listinfo/markdown-discuss

Reply via email to