tag:support.markedapp.com,2011-09-11:/discussions/questions/2407-sublime-text-3Marked: Discussion 2019-07-15T15:06:17Ztag:support.markedapp.com,2011-09-11:Comment/275744102013-07-01T19:53:19Z2013-07-01T19:53:19ZSublime Text 3?<div><p>You can set up a Build System for Markdown files like this:
<a href=
"http://doingthatwrong.com/home/2012/5/21/launching-marked-from-sublime-text-2.html">
http://doingthatwrong.com/home/2012/5/21/launching-marked-from-subl...</a></p>
<p>There's a ready-to-go one in the Bonus Pack: <a href=
"http://support.markedapp.com/kb/how-to-tips-and-tricks/marked-bonus-pack-scripts-commands-and-bundles">
http://support.markedapp.com/kb/how-to-tips-and-tricks/marked-bonus...</a></p>
<p>You can also add it to the Sublime Text menu with a package
(available through Package Manager as well): <a href=
"https://github.com/jocelynmallon/sublime-text-2-marked">https://github.com/jocelynmallon/sublime-text-2-marked</a></p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/275744102013-07-01T19:58:10Z2013-07-01T19:58:10ZSublime Text 3?<div><p>Hi Brett</p>
<p>I thought it had to do with Sublime Text but, Marked seems to be
crashing<br>
each time I run it and open a file. It crashes hard, every time.
Can you<br>
help? I reinstalled from App store and that didn't help!</p>
<p>-- Pito</p></div>pitosalastag:support.markedapp.com,2011-09-11:Comment/275744102013-07-01T20:05:13Z2013-07-01T20:05:13ZSublime Text 3?<div><p>If you've altered your system Ruby install, that may be the
culprit. If so (or if you're not sure), see this discussion:
<a href=
"http://support.markedapp.com/discussions/problems/3285-marked-crashed-when-i-try-to-open-md-or-mdown">
http://support.markedapp.com/discussions/problems/3285-marked-crash...</a></p>
<p>Otherwise, please send a crash report from Console.app and a
sample file that you're trying to open.</p>
<p>Thanks,<br>
Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/275744102013-07-01T20:12:59Z2013-07-01T20:12:59ZSublime Text 3?<div><p>Hi Brett</p>
<p>Thanks, that might be it. Does Marked assume that ruby is found
at a<br>
specific place, /usr/bin/ruby ??</p>
<p>Because on my system, due to using rbenv, the console says
this:</p>
<p>~> ls /usr/bin/ruby ls: /usr/bin/ruby: No such file or
directory<br>
~> which ruby /Users/pitosalas/.rbenv/shims/ruby ~> ruby -v
ruby 2.0.0p195 (2013-05-14 revision 40734)
[x86_64-darwin12.3.0]<br>
~></p>
<p>What's the 'clean' way to handle my case?</p>
<p>Thanks,</p>
<p>Pito</p></div>pitosalastag:support.markedapp.com,2011-09-11:Comment/275744102013-07-01T20:24:22Z2013-07-01T20:24:22ZSublime Text 3?<div><p>Link your ruby to /usr/bin/ruby (that's where Marked 1.4 expects
it).</p>
<p>ln -s /Users/pitosalas/.rbenv/shims/ruby /usr/bin/ruby</p>
<p>p.s. This issue will be resolved in the next major release by a)
reducing dependency on Ruby, b) searching for Ruby in
System/Frameworks and c) providing better error catching if the
binary isn't found.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/275744102013-07-02T13:36:17Z2013-07-02T13:36:17ZSublime Text 3?<div><p>Thanks!</p></div>pitosalastag:support.markedapp.com,2011-09-11:Comment/275744102013-10-19T16:23:35Z2014-01-04T17:53:00ZSublime Text 3?<div><p>Neither of the second two options in the original answer work
for me in ST3. I've added a github issue to <a href=
"https://github.com/jocelynmallon/sublime-text-2-marked">https://github.com/jocelynmallon/sublime-text-2-marked</a>.</p>
<p>The Bonus Pack details are all about ST2 not ST3.</p>
<p>Thankfully the first option let me work it out, though again
it's different for ST3 that written. The .build-system is</p>
<pre>
<code>{
"shell_cmd": "open -a marked \"$file\""
}</code>
</pre></div>jonathantag:support.markedapp.com,2011-09-11:Comment/275744102014-11-21T00:33:09Z2014-11-21T00:33:09ZSublime Text 3?<div><p>Just to update... for building with Marked 2 via ST3 it should
now be...</p>
<pre>
<code>{
"shell_cmd": "open -a 'marked 2' \"$file\""
}</code>
</pre></div>david.payne.pactag:support.markedapp.com,2011-09-11:Comment/275744102015-03-18T15:52:11Z2015-03-18T15:52:12ZSublime Text 3?<div><p>As someone who has never set up a build system in Sublime Text,
I was confused by the instructions given. It's one of those (many)
things that's simple if you know how, but it took me about an hour
of trawling the internet for different sets of instructions.</p>
<p>For others in my boat, here are step by step instructions to
make Sublime Text 3 preview documents in Marked 2.</p>
<p>Assuming Marked 2 is installed, everything is done inside
Sublime Text 3.</p>
<p>In Sublime Text 3, click on:<br>
Tools > Build System > New Build System</p>
<p>You'll be presented with a blank document containing the
following text:</p>
<p>{ "shell_cmd": "make" }</p>
<p>Replace the text with this:</p>
<p>{ "shell_cmd": "open -a 'marked 2' \"$file\"" }</p>
<p>Save the file. You'll be prompted for a filename - the default
is untitled.sublime-build - change "untitled" to Marked2</p>
<p>This adds the option to use Marked 2 to Sublime Text 3's build
options. (As far as I could see, no restart was required.)</p>
<p>Now click Tools>Build System and change your default Build
System to Marked2, which should now be listed at the bottom.</p>
<p>After that, pressing Command-B (or clicking Tools>Build)
should automatically open the current document in Marked 2.</p></div>Duncan McKenzietag:support.markedapp.com,2011-09-11:Comment/275744102019-06-11T13:43:20Z2019-07-15T15:06:17ZSublime Text 3?<div><p>Thank you, Duncan!</p>
<p>As addendum to Duncan's instructions, you have to save the file before you build it. I had a test file I created and Duncan's instructions "weren't working." When I got an error message from Marked2 that there was no file for it to display, I tried saving the test file. BAM! Worked like a charm!</p>
<p>On behalf of MultiMarkdown writers who aren't developers, thank you, Duncan!</p></div>sylvaticustag:support.markedapp.com,2011-09-11:Comment/275744102019-06-11T14:41:14Z2019-06-11T14:41:14ZSublime Text 3?<div><p>Keith: You can also use a package to run the build system automatically<br>
whenever you save: <a href="https://packagecontrol.io/packages/SublimeOnSaveBuild">https://packagecontrol.io/packages/SublimeOnSaveBuild</a></p>
<p>I'm pretty sure I have a preference set that saves all open files when<br>
running Build, but a quick scan didn't turn it up for me.</p>
<ul>
<li>Brett</li>
</ul></div>Brett