Cron / Crontab syntax highlighting for Sublime Text 2 and 3
- Total 2K
- Win 527
- OS X 1K
- Linux 565
|Oct 22||Oct 21||Oct 20||Oct 19||Oct 18||Oct 17||Oct 16||Oct 15||Oct 14||Oct 13||Oct 12||Oct 11||Oct 10||Oct 9||Oct 8||Oct 7||Oct 6||Oct 5||Oct 4||Oct 3||Oct 2||Oct 1||Sep 30||Sep 29||Sep 28||Sep 27||Sep 26||Sep 25||Sep 24||Sep 23||Sep 22||Sep 21||Sep 20||Sep 19||Sep 18||Sep 17||Sep 16||Sep 15||Sep 14||Sep 13||Sep 12||Sep 11||Sep 10||Sep 9||Sep 8|
Crontab Syntax Highlighting
- Open Sublime Text 2/3
- Locate Preferences in the menu, click on “Browse Packages…”
- Create a folder named Crontab and copy everything from this repository in that folder
A recent addition was using a few different sytax types like
in the language definition syntax. This is a bit of a hack because Sublime Text does not
seem to have an easy way for a plugin to suggest colors for the language scopes. In
addition, it is hard to know what scopes will be available in a theme, so with most
meta.minute.crontab will show up the same. This led me to believe
the plugin was 'broken' when it was first installed because everything was one color.
The syntax will look acceptable with most themes with these revised scopes:
keyword.at.crontab keyword.minute.crontab constant.hour.crontab class.dayofmonth.crontab keyword.month.crontab constant.dayofweek.crontab string.command.crontab
This will at least give it some syntax coloring with most themes - but still allow themes to override the colors.
If you would like to make the colors look more like the
vim darkbg style,
add the definitions from the included
optional-add-to-theme.xml file to your theme, or
perhaps use the Sublime Theme Editor to customize.