Sublime Text Build without Saving - Anypreter

Sublimetext2 Build System

Sublimetext2 ships with its Build System. You can run a ruby file by Cmd + B (or through Tools -> Build menu).

One thing bothers me is you have to SAVE that file first, you can’t run “untitled” ruby code even you specified which build system (language) to use. This was the reason I still keep Textmate in my Mac, thanks to this plugin called Anypreter I can finally say goodbye to Textmate.

About Anypreter

You can install it through Package Control. It supports PHP, Python and Ruby.

After specify the language (suppose you haven’t saved it), Ctrl + Shift + X to run and check the result. Rightclick in the document works too.

Futher Reading

Archived discussion

Comments from the old blog, preserved as originally posted.

    1. Piao

      hi saroj, i'm willing to help, can you explain which part you had trouble with? Any specific information could help.

  1. saroj kandel

    hello kinopyo thank you for going to help me .i have install anypreter from package control and now i don't know where to put this code and how to set "RUBY_BINARY_PATH",

    {
    "php_binary_path": "YOUR_PHP_BINARY_PATH",
    "ruby_binary_path": "YOUR_PHP_BINARY_PATH",
    "python_binary_path": "YOUR_PHP_BINARY_PATH",
    "anypreter_stream_output": False,
    "anypreter_output_inteval": 1
    }

Qihuan Piao

Qihuan Piao

Originally from China and now living in Tokyo, I started this blog to practice English. Over the years, writing helped me find my own voice and explore thoughts about identity, life, and ordinary things that catch my curiosity. I mostly write for myself, but I love it when something here connects with someone else.

Meanwhile, what I wrote in Japanese

Fruit Ninjia in Real Life and Flying Kittens

December 28, 2012

Meanwhile, what I wrote in Chinese

小悲伤之便当盒篇

December 18, 2012