Home » Blog » Software Development » Writing a plugin for Sublime Text 2: Enhancing the Matlab plugin

Writing a plugin for Sublime Text 2: Enhancing the Matlab plugin

Two months ago, I discovered the all-purpose text editor “Sublime Text 2“. This editor became my favorite editor very quickly for several reasons.

The main ones are

  • multi-platform support for Windows, MacOS, Linux
  • extremely smooth and fast response of the GUI
  • clear UI, distraction free mode
  • Customizable build system support
  • Plug-In API and package management system for (Python-based) extensions

I was not happy with the text editor that I used before Sublime Text 2. If you are also looking for a nice and powerful all-purpose editor I definitely would recommend to give this editor a try.

I wanted to get to know the Plug-in API of Sublime Text and wrote a small extension for the built-in Matlab plug-in. For those who do not know it: Matlab is a powerful software for solving all kinds of numerical problems (and much, much more). Matlab’s native editor allows to open the source code of functions when their name is selected in the editor window. The plug-in that I wrote implements exactly this behavior as following:

[gist id=3051595]

Maybe this is inspiring you in one or another way. I had fun with getting to know the API of the editor, learning that the functionality of the editor can very easily be extended, and to use Python, which (I think) is an elegant and quite easy to learn language.

Check Also

Xarcade2Jstick supports new Tri-Mode Tanksticks

X-Arcade Dual Joystick If you happen to own an X-Arcade Tankstick this post might be …

One comment

  1. I really appreciate your work. Do you just make sublime build into a new window? I wish there were a way to continually building it into the same window.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

We use Cookies and similar technology to collect and analyse information about the users of this website. We use this information to enhance the content, advertising and other services available on the site. Please click ‘Accept cookies’ to consent to the use of this technology by petrockblock. You can manage your preferences at any time by visiting our Cookies Policy page.