- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在 http://www.ultraedit.com/downloads/extras/wordfiles.html我没有找到 Docker 的 wordfile。
http://www.ultraedit.com/support/tutorials_power_tips/ultraedit_linux/add_a_wordfile.html解释了如何发挥自己的作用。
灵感来自https://github.com/docker/docker/blob/master/contrib/syntax/vim/syntax/dockerfile.vim我尝试过:
/L20"Docker" Line Comment = # Escape Char = \ String Chars = "' File Extensions =
/Delimiters = ~!@$%^*()+=/\[]{}:;"<>'�` , .?
/Indent Strings = "{("
/Unindent Strings = "})"
/Function String = "%[a-zA-Z_]*("
/C1
ADD
CMD
ENTRYPOINT
ENV
EXPOSE
FROM
MAINTAINER
RUN
USER
LABEL
VOLUME
WORKDIR
COPY
STOPSIGNAL
/C2
/C3
]
[
/C4
首先。
需要进行哪些更改才能使其成为适用于 docker 的正确语法突出显示文件?
在我的 Mac 上,我将上面的代码放入/Library/Application Support/UltraEdit/wordfiles/docker.uew
然后重新启动 Ultraedit 并从 View 菜单中主动选择 Docker 的语法突出显示。
最佳答案
该教程提到:
Any files opened after saving the modified wordfile, which have an extension matching those defined in the wordfile, will be highlighted accordingly.
但是 Dockerfile 默认情况下没有扩展名。
从 UltraEdit v19.00 开始,支持一些 shebangs 自动检测和突出显示不带扩展名的文件类型。
但这在这里没有帮助。
用户可以随时通过单击查看 - 查看方式(突出显示文件类型)
中的相应菜单项来切换语法突出显示。
The conditions for automatic syntax highlighting selection by UltraEdit on opening a file or saving a file with changed file name are:
- Does name of file match case-insensitive a file name specified for a syntax highlighting language with
File Names =
?
因此,将 Wordfile 中的 File Extensions =
替换为 File Names = Dockerfile
(等号前后的空格很重要)指令,看看是否有效。
Mofi 提到 in an edit:
File Extensions and File Names cannot be specified both in a wordfile.
关于docker - Ultraedit docker 语法高亮文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33205986/
在这个 fiddle 上,函数完美地完成了工作,但我需要稍微调整连接。 该点击甚至需要是父 div 的 addClass(深色/浅色)(true 或 false)。 如果是深色,则添加 Bright
我正在使用 Windows.UI.ViewManagement.UISettings 来获取系统强调色,但该类似乎没有任何亮/暗模式的方法或属性。我找不到此功能的文档,我该如何检测? PS:我正在制作
在使用 iOS 13 在明暗模式之间切换时,我遇到了显示键盘的异常行为。 该 View 有一个 inputAccessoryView 供用户输入消息。当然后在键盘显示的情况下切换亮/暗模式时,亮/暗模
我正在开发一个支持多个主题的 iOS 应用程序。有些主题使用深色背景,有些使用浅色。一些默认图标在深色/浅色背景中不可见。我在 xcassets 中看到一个选项,可以为不同的颜色模式添加图像。我的目标
一些上下文:Sciter (纯 win32 应用程序)已经能够呈现类似 UWP 的 UI: 在深色模式下: 在灯光模式下: Windows 10.1803 在设置小程序中引入深色/浅色开关 as se
我是一名优秀的程序员,十分优秀!