Home Download Buy Blog Forum Support

Using Multimarkdown in windows as a build file

Using Multimarkdown in windows as a build file

Postby capnhud on Mon Sep 24, 2012 11:37 am

I am trying to use ST2 as a markdown editor.

What I would like to do is open a file and certain areas of the file I would like multimarkdown (located in C:\Program Files\MultiMarkdown\multimarkdown.exe and included in the env path) to format for me. I find the certain parts using the following regex:
Code: Select all
\G(?:[^"]|""|""")*

which will find and highlight what I am looking for.

Following the suggestion from here I created a Multimarkdown.sublime-build and then when completed pushed Ctrl+B to format that selection.

However even though I see Multimarkdown in the list of Build systems nothing happens.

Here is the build file:

Code: Select all
[
  {
    "windows": {
      "cmd": ["open", "-a", "multimarkdown.exe", "$file"]
    },
    "selector": "text.html.markdown"
  }
]



and the console shows the following:
Code: Select all
Traceback (most recent call last):
  File ".\sublime_plugin.py", line 337, in run_
    return self.run(**args)
TypeError: run() argument after ** must be a mapping, not list


how do I get this to work on a selection in a file.
capnhud
 
Posts: 62
Joined: Thu Jan 14, 2010 11:57 am

Return to General Discussion

Who is online

Users browsing this forum: fizzicist and 31 guests