OctaveSupport
Octave package for Sublime Text, providing syntax highlighting, indentation, and code snippets
Details
Installs
- Total 2K
- Win 766
- Mac 611
- Linux 624
Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
Mac | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 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 styleoctfun
- A function definition, in GNU Octave style- This is a fixed-up version of the one found in Sublime Text’s Matlab package.
unwind
– Anunwind_protect
blockunwtry
– A combinationunwind_protect
+try
/catch
block