[TxMt] primer on markdown & textmate

Brad Choate bchoate at gmail.com
Wed May 17 05:07:33 UTC 2006


On May 16, 2006, at 9:54 PM, Charilaos Skiadas wrote:

>> Writing a Markdown document in Textmate
>> =================================
>> I understand the basic principals of markdown, but typing the code  
>> (albeit, simple) seems burdensome.  Is it possible to:
>>
>> *  highlight selected items and add a "*" (bullet) at the  
>> beginning of the list?
>
> If I undestand correctly, you want to go from:
>
> one
> two
> three
>
> to
>
> * one
> * two
> * three
>
> In that case, select the first two lines, press option followed by  
> star and space. Or better, create a command with code the single line:
>
> sed 's/\(.*\)/* \1/'
>
> with input set to selected text, fall-back line, and output set to  
> replace selected text.
> With this command, you'll want to select all three lines.

There's also the excellent Outlines bundle. Select those lines and  
hit Ctrl+Cmd+O (letter o) and select "Tabs to Markdown". In this  
case, it will simply add '* ' in front of each line.




More information about the textmate mailing list