[TxMt] Re: Adding code syntax highlight to markdown blogging.

Charilaos Skiadas skiadas at hanover.edu
Tue Mar 6 03:28:46 UTC 2007


On Mar 5, 2007, at 9:12 PM, Jacob Rus wrote:

> Luke Daley wrote:
>> Would it be possible to add support for correctly syntax  
>> highlighting code in markdown blog posts?
> [...]
>> [perl]
>>     # perl code here
>> [/perl]
>> etc.
>> What would be the best way to do this?
>
> I think your best bet is to duplicate the markdown grammar and make  
> modifications locally.  It's possible though that you could get  
> away with doing it by making a new grammar and inheriting the  
> markdown grammar.  See the textmate docs.

Any reason why we couldn't add those two cases to the official  
Blogging -- Markdown syntax? There's a similar one with [tex] I  
believe, btw.

>
> -Jacob

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College







More information about the textmate mailing list