interoperability

Live Markdown Preview in Any Editor Using Marko.app

markdown mou.app alternative marko os x live preview vim webstorm

Marko (free) from the App Store (unrelated to an app with the same name by Marko Labs) finally fulfilled all my requirements to replace my previous Markdown editor Mou. Unlike Mou which tries to do too much and essentially is not meant to be integrated into other apps, Marko does one thing and does it well. It has excellent GitHub flavored Markdown support and it works by simply watching a Markdown file for changes you make in any external editor (my favorites are vim and WebStorm.)

Usage

Open Marko.app, then the markdown. You will see the parsed preview. Now in your editor open that markdown file and edit while Marko sits and updates live.

Command-line Usage

open -a /Applications/Marko.app ~/project/README.md

I created a console script /usr/local/bin/marko

  • Simply create that file: touch /usr/local/bin/marko
  • Give it executable permission: chmod a+x /usr/local/bin/marko
    and paste:
#!/bin/bash
open -n -a /Applications/Marko.app "$@"


(the -n here is to open a new syntax even if one exists. just a personal preference.)

Integration into JetBrains’ suite of apps

To add Marko as an External Tool to WebStorm, open preferences in WebStorm or the other JetBrain IDEs (PHPStorm, RubyMine, etc.) and under External Tools, add it with these options:

  • External Tool to execute: open
  • with the following args: -n -a /Applications/Marko.app $FilePath$

Screenshot makes this easier to understand:

markdown mou.app alternative marko os x live preview vim webstorm

To simplify this, you can create a marko script (see above) and use that in place of “open” in the external tool option and pass $FilePath$ as the argument.

Running IETester on Mac OS X (Convert EXE to DMG)

Wineskin creates a “wrapper” around a Windows executable file. This wrapper encloses the executable into a specific environment. The .app file (wrapper) simply executes the EXE using `wine`

This example was tested on Mac OS X Lion 10.8.4 and Wineskin Winery 1.7

Testing IE on Mac without installing Windows or using Bootcamp of Parallel.

Download Wineskin Winery, download IETester.exe Install Wineskin Winery (and an engine for it. More details to come, this is WIP)

Create a Winery wrapper and give it a name like IETester.app (If it demands a file, give it IETester.exe)

Screen Shot 2013-08-27 at 2.27.59 PM

 

When the wrapper is done, open the app file and choose “Install software” and from there, find the IETester.exe you had downloaded earlier.

Screen Shot 2013-08-27 at 2.37.19 PM

 

After the installation, Winery will let you know where the IETester.app was generated. In my case, it was in ~/Applications/Wineskin/

Screen Shot 2013-08-27 at 2.34.48 PM

Screen Shot 2013-08-27 at 2.36.21 PM

Now you can run any EXE within the installed app, see picture below.

Testing IE7, IE8, IE9, IE10 on OS X without having Windows

 

If you’re very interested in getting a piece of Windows-only software to run on Mac OS X, consider CrossOver Office, wine itself and many others available.