【发布时间】:2016-08-19 15:39:41
【问题描述】:
是否可以在 Sublime Text 中为 Dockerfile 获得语法高亮显示?
【问题讨论】:
-
不是最好的答案,但是:atom.io 有一个 Dockerfiles 插件
标签: docker syntax-highlighting sublimetext dockerfile
是否可以在 Sublime Text 中为 Dockerfile 获得语法高亮显示?
【问题讨论】:
标签: docker syntax-highlighting sublimetext dockerfile
当然可以,通过从Package Control 安装此软件包:
【讨论】:
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.
适用于窗户
the same just replace cmd(⌘) with Ctrl
Now you're all set! Enjoy!
【讨论】:
如果有人有同样的问题,在 docker-compose 文件中,您可以将 lower_case_table_names 配置附加到 mysql 命令。
mysql:
image: mysql:8
container_name: shiftmonitor_mysql
command: mysqld --lower_case_table_names=0
而且它有效。
【讨论】: