Minimal package to get syntax highlighting working for Starlark(on github) in Sublime Text.
The recommended way is to use Package Control to automatically receive the latest updates and make the entire process much simpler.
(this should work once pull request is accepted to Package Control)
- Open Sublime Text and press
Shift+Ctrl+P
(Cmd+Shift+P
on Mac). - Type
install
and press enter. - Another text box should appear, type
Starlark
and you should see this plugin highlighted. Press Enter to install it.
- Download this Git Repository's master branch as a .zip file. (Or you can download the latest release.)
- Navigate to
Preferences > Browse Packages...
(orSettings -> Browse Packages...
) - Put the folder from the .zip into the location that was opened.
- Restart Sublime.
Use Set syntax: Starlark
to apply to current file. Newly opened files with .star
/.bzl
(and some others, see starlark.sublime-syntax) should already have syntax applied.