ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Octave​Support

by apjanke ST3

Octave package for Sublime Text, providing syntax highlighting, indentation, and code snippets

Details

Installs

  • Total 2K
  • Win 734
  • Mac 592
  • Linux 572
Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5
Windows 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 3 1
Mac 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 2 0 0 2 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0 1 1

Readme

Source
raw.​githubusercontent.​com

OctaveSupport for Sublime Text 3

OctaveSupport package for Sublime Text, providing syntax highlighting, indentation settings, and code snippets.

This is a work in progress: I’m new to writing Sublime Text extensions, so something may be off here.

I’m working on getting this into the Package Control main channel.

Installation

Installing with Package Control

This is how most users should do it.

  • First, install Package Control
  • In Sublime Text, open the Command Palette (Cmd-Shift-P on Mac, Ctrl-Shift-P on Linux/Windows) and choose “Package Control: Add Repository”
  • Add https://github.com/apjanke/OctaveSupport
  • Open the Command Palette and choose “Package Control: Install Package”
  • Select OctaveSupport from the package list

Installing from GitHub repo

This is how you should do it if you want to hack on OctaveSupport itself.

  • Clone the Git repo
    • git clone https://github.com/apjanke/OctaveSupport
  • Link the source directory into your Sublime Text Packages/User directory
    • on macOS:
    • cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User
    • ln -s /path/to/my/cloned/sublime-octave OctaveSupport.sublime-package
    • on Linux: You’ll need to find the Sublime Text data path yourself; I don’t know where it is
    • on Windows: Symlinks are not supported, so this won’t work. TBD.

Usage

Once installed, there will be an “Octave” choice under the View > Syntax menu. Open an Octave .m file and select it. You may also want to do View > Syntax > “Open all with current extension as…” > Octave.

Snippets

To use the code snippets, type one of their names and hit the Tab key. Available snippets:

  • octclass – A classdef class definition, in GNU Octave style
  • octfun - A function definition, in GNU Octave style
    • This is a fixed-up version of the one found in Sublime Text’s Matlab package.
  • unwind – An unwind_protect block
  • unwtry – A combination unwind_protect + try/catch block