Hi,
Beginner Question: Is it possible to run Markdown in Textmate? If yes, how? Thanks for your return.
Greetings Detlef Hoge
On Dec 14, 2004, at 9:21, Detlef Hoge wrote:
Beginner Question: Is it possible to run Markdown in Textmate? If yes, how? Thanks for your return.
It is -- but what exactly do you want to do with the result?
You can e.g. get a realtime preview of your text parsed with markdown using the web preview, you can do a command to convert the current buffer to HTML using markdown, or maybe you want it in a new window or exported to a file, etc.?!?
Hi Allan,
Am 14.12.2004 um 20:45 schrieb Allan Odgaard:
On Dec 14, 2004, at 9:21, Detlef Hoge wrote:
Beginner Question: Is it possible to run Markdown in Textmate? If yes, how? Thanks for your return.
It is -- but what exactly do you want to do with the result?
you can do a command to convert the current buffer to HTML using markdown
Yes, that's it what I want to do: But how?
Thanks, Detlef Hoge
On Dec 16, 2004, at 12:24, Detlef Hoge wrote:
[...] you can do a command to convert the current buffer to HTML using markdown
Yes, that's it what I want to do: But how?
I assume you have markdown installed already!?!
Go to (menu) Automation -> Run Command and select Edit Commands…
Press the + button to create a new command and enter the path for the installed markdown script (in the command(s) text field) and change standard input/output choices to “Entire Document” and “Replace Document”.
You can optionally assign a key equivalent to this command. Otherwise when you run the commend, it'll convert the entire document using the markdown script.
Am 16.12.2004 um 16:43 schrieb Allan Odgaard:
On Dec 16, 2004, at 12:24, Detlef Hoge wrote:
[...] you can do a command to convert the current buffer to HTML using markdown
Yes, that's it what I want to do: But how?
I assume you have markdown installed already!?!
Sorry, no, that's my Problem. How can I install Markdown in Textmate?
Thanks for your Support, Detlef Hoge
On Dec 16, 2004, at 17:07, Detlef Hoge wrote:
I assume you have markdown installed already!?!
Sorry, no, that's my Problem. How can I install Markdown in Textmate?
Download the script from here: http://daringfireball.net/projects/markdown/
It's a zip archive so you may need to unzip it with Finder (just double click it).
It extracts a folder in which you can find 'Markdown.pl'. I suggest you move this to ~/bin (you may need to create this folder).
Then in TextMate, as the command(s) you use: ~/bin/Markdown.pl
You can also open Terminal.app and paste the following five lines (it'll download, expand, and install the script:
cd /tmp curl -O http://daringfireball.net/projects/downloads/Markdown_1.0.zip unzip Markdown_1.0.zip mkdir ~/bin mv Markdown_1.0/Markdown.pl ~/bin