Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've begun writing stuff in markdown lately, and edit my files in SciTE. I work in Windows, so this means I'm simultaneously running a Windows command prompt to generate output files at various stages of my writing process.

I mostly output my files in the same format, and with basically the same command line switches to pandoc. For instance, my usual command looks something like this:

pandoc [flags] -o output.html input.markdown

I've omitted my usual flags for clarity.

Is there any way to set up SciTE to recognize the file extension I'm using for markdown files and configure it to "Compile" the file with a command string something like this?

Ultimately, if this is possible I'd also like to set the "Build" option to run the file through markdown2pdf as well, and maybe (if I'm really lucky) someday figure out how to configure Go to launch the HTML file that comes from running the "compile" command...

share|improve this question

migrated from Oct 12 '11 at 15:25

This question came from our site for users of TeX, LaTeX, ConTeXt, and related typesetting systems.

up vote 1 down vote accepted

This is not a full Markdown mode, but it is a good example to accomplish what you want.

You can add this file to /usr/share/scite as

# Define SciTE settings for Markdown files.


filter.markdown=Markdown (md markdown)|$(file.patterns.markdown)|

command.compile.$(file.patterns.markdown)=pandoc -o "$(FileName).html" "$(FileNameExt)"
command.go.$(file.patterns.markdown)=pandoc -o "$(FileName).html" "$(FileNameExt)" && firefox "$(FileName).html"

Then you'll also need to apply this patch like so: patch -p1 <

Changes in master
diff --git a/ b/
index 1f41382..456ac2a 100644
--- a/
+++ b/
@@ -294,7 +294,7 @@ chars.accented=

@@ -330,6 +330,7 @@ $(filter.kix)\
@@ -508,6 +509,7 @@ Lisp|lisp||\
@@ -590,6 +592,7 @@ import lot
 #import lout
 import lua
 import matlab
+import markdown
 import metapost
 import mmixal
 #import modula3
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .