Is it possible to get syntax highlighting for a Dockerfile in Sublime Text?
Of course you can, by installing this package from Package Control:
for mac
Press cmd(⌘)-shift-p and type "add repo".
Then paste in the GitHub address for this package:
https://github.com/jaytaylor/Dockerfile.sublime-syntax
Press cmd(⌘)-shift-p and type "install".
Enter "Dockerfile.sublime-syntax" and press enter.
for windows
the same just replace cmd(⌘) with Ctrl
Now you're all set! Enjoy!
Press command + shift + p to open the 'Command Palette'.
Search: package control: install package (you may have to install it first if you haven't yet)
Then search: dockerfile syntax highlighting
Close and re-open your Dockferfile, it will be syntax highlighted.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With