Sublime Text中Dockerfile的语法高亮显示?

Ben*_*son 15 syntax-highlighting sublimetext docker dockerfile

是否可以在Sublime Text中获得Dockerfile的语法高亮?

ale*_*nco 17

当然,您可以通过从Package Control https://packagecontrol.io/packages/Dockerfile%20Syntax%20Highlighting安装此软件包


use*_*745 10

4 步骤

  1. command+ shift+p打开“命令面板”

  2. 搜索:包控制:安装包(如果还没有安装,可能需要先安装)

  3. 然后搜索:dockerfile语法高亮

  4. 关闭并重新打开 Dockferfile,它将突出显示语法。


gha*_*adr 5

对于Mac

Press cmd(?)-shift-p and type "add repo".
Then paste in the GitHub address for this package:
Run Code Online (Sandbox Code Playgroud)

https://github.com/jaytaylor/Dockerfile.sublime-syntax

Press cmd(?)-shift-p and type "install".
Enter "Dockerfile.sublime-syntax" and press enter.
Run Code Online (Sandbox Code Playgroud)

用于窗户

the same just replace cmd(?) with Ctrl
Now you're all set! Enjoy!
Run Code Online (Sandbox Code Playgroud)