It's been a while, but I've finally got some free time to improve the Markdown bundle. I see brad and duff have done most of the hard work of getting the bundle to work with the new syntax selection (thanks guys!), so what I'm looking for is requests for further improvement. What are you guys using it for? What snippets, commands, etc would be useful?
I'm also going to put some time into improving the regular expressions (esp. with the new regexp toolkit) and hopefully will be able to do a better job of matching some of markdown's more complicated structures (eg. lists and code blocks).
Hadley
On May 20, 2005, at 22:50, hadley wickham wrote:
It's been a while, but I've finally got some free time to improve the Markdown bundle. I see brad and duff have done most of the hard work of getting the bundle to work with the new syntax selection [...]
heh... just ran it through and changed most names :) keyword.other.markdown is currently wrong, but at least then it gets assigned a style by default -- probably it should be constant.<something>.code.markdown. Maybe that's stretching constants a bit though.
I'm also going to put some time into improving the regular expressions
Starting with beta 9 it should be possible to do something like: begin = "..."; end = "^$";
And that'll require one blank line to end the construct. I think this was required for headers!?!
keyword.other.markdown is currently wrong, but at least then it gets assigned a style by default -- probably it should be constant.<something>.code.markdown. Maybe that's stretching constants a bit though.
I was thinking something like markup.raw to indicate that it's not processed by markdown. This would also be applicable to other markup systems (eg. textile) which do similar things.
Starting with beta 9 it should be possible to do something like: begin = "..."; end = "^$";
And that'll require one blank line to end the construct. I think this was required for headers!?!
Great! That will also work will for matching the various lists which can run over multiple lines.
Hadley
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Welcome back,
I'd be happy to see any improvements in the matching rules! I only did the easy 80%. :-)
Possible additions:
- -- I use markdown mostly for posting things to my blog (using blosxom). Right now I use TM with Yummy FTP for remote editing, but I would love to have a one touch command that posts the current file to a blog using scp. (I may be alone here, I know)
- -- more snippets for common formatting actions + creating headings + quoting selections + inserting code
On May 20, 2005, at 3:50 PM, hadley wickham wrote:
It's been a while, but I've finally got some free time to improve the Markdown bundle. I see brad and duff have done most of the hard work of getting the bundle to work with the new syntax selection (thanks guys!), so what I'm looking for is requests for further improvement. What are you guys using it for? What snippets, commands, etc would be useful?
I'm also going to put some time into improving the regular expressions (esp. with the new regexp toolkit) and hopefully will be able to do a better job of matching some of markdown's more complicated structures (eg. lists and code blocks).
Hadley ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On May 20, 2005, at 11:42 PM, Brad Miller wrote:
Possible additions:
- -- I use markdown mostly for posting things to my blog (using
blosxom). Right now I use TM with Yummy FTP for remote editing, but I would love to have a one touch command that posts the current file to a blog using scp. (I may be alone here, I know)
dito, but with XML-RPC and MetaWeblogAPI ;-)
- quoting selections
- inserting code
yup, that would be nice, too ;)
tom
-- Tom Lazar http://tomster.org
- -- I use markdown mostly for posting things to my blog (using
blosxom). Right now I use TM with Yummy FTP for remote editing, but I would love to have a one touch command that posts the current file to a blog using scp. (I may be alone here, I know)
dito, but with XML-RPC and MetaWeblogAPI ;-)
Do what I do - use ecto, some AppleScript, and TextMate, and you're all set. Ecto is Adriaan Tijselling's curiously strong weblog post manager, and quite possibly the best maintained and most regularly feature-extended piece of shareware for the Mac besides TextMate.
And if that's too much, just fire up Ecto and use the "Edit in TextMate" menu item.
jonas
Others have mentioned using Ecto. You can post to Blosxom using XMLRPC naitivly using my BXR package at http://bxr.sf.net
Regards,
Allen
On 5/20/05, Brad Miller bmiller@luther.edu wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Welcome back,
I'd be happy to see any improvements in the matching rules! I only did the easy 80%. :-)
Possible additions:
- -- I use markdown mostly for posting things to my blog (using
blosxom). Right now I use TM with Yummy FTP for remote editing, but I would love to have a one touch command that posts the current file to a blog using scp. (I may be alone here, I know)
- -- more snippets for common formatting actions
- creating headings
- quoting selections
- inserting code
On May 20, 2005, at 3:50 PM, hadley wickham wrote:
It's been a while, but I've finally got some free time to improve the Markdown bundle. I see brad and duff have done most of the hard work of getting the bundle to work with the new syntax selection (thanks guys!), so what I'm looking for is requests for further improvement. What are you guys using it for? What snippets, commands, etc would be useful?
I'm also going to put some time into improving the regular expressions (esp. with the new regexp toolkit) and hopefully will be able to do a better job of matching some of markdown's more complicated structures (eg. lists and code blocks).
Hadley ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin)
iD8DBQFCjlnNt6pClM1VKiYRArdhAKDE9O+IG7J9blJsGgBjaHHFab0afQCgsUmW 3xaAkv394cjXor3Ao1vAk2g= =/QW7 -----END PGP SIGNATURE----- ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On May 20, 2005, at 11:42 PM, Brad Miller wrote:
I'd be happy to see any improvements in the matching rules! I only did the easy 80%. :-)
hm... those other 20% wouldn't happen to include stuff like _emphasis_ and [links](http://macromates.com), would they?
these (rather important) features are currently (b9 and svn checkout of today) not working anymore - couldn't tell you, though, when it worked last.
any ideas what's going on?
thanks,
tom
-- Tom Lazar http://tomster.org
these (rather important) features are currently (b9 and svn checkout of today) not working anymore - couldn't tell you, though, when it worked last.
Well they're working for me! It's possible my attempts to identify blocks have mucked this up in some situations. If you could send a test case that illustrates the problem, I'll endeavour to fix it.
Hadley