updateProfile.paletteAttributes 参数

使用 updateProfile.paletteAttributes 参数来设置或查询在发出 updateProfile 命令时将要用于所指定的样式和调色板的样式属性。

可用性

query 命令
set 命令
current 参数
default 参数
install 参数

作用域

updateProfile.paletteAttributes.style.palette 的作用域为当前视图。
current.updateProfile.paletteAttributes
.style.palette 的作用域为当前视图。
default.updateProfile.paletteAttributes.style.palette 的作用域为全局。
install.updateProfile.paletteAttributes
.style.palette 的作用域为全局。

语法

query updateProfile.paletteAttributes.style.palette
set updateProfile.paletteAttributes.style.palette { default
                                                  | [ styleAttributes ]
                                                  }
query current.updateProfile.paletteAttributes.style.palette
query default.updateProfile.paletteAttributes.style.palette
set default.updateProfile.paletteAttributes.style.palette { install
                                                          | [ styleAttributes ]
                                                          }
query install.updateProfile.paletteAttributes.style.palette 

参数

style 使用 style 参数来指示样式。可用的样式如下所示:
  • addedLines
  • background
  • currentLine
  • cursor
  • default
  • deletedLines
  • emphasis
  • expandHide
  • formatLine
  • messageLine
  • parserDefault
  • parserMessage
  • prefixArea
  • prefixText
  • selection
  • statusLine。
有关这些样式的更多信息,请参考 styleAttributes 参数。
palette 使用 palette 参数来指示您希望为其定义样式属性的调色板。在定义调色板时,至少必须要指示 default 样式的样式属性。将为 current.updateProfile.palettes 参数返回的那些调色板定义缺省样式。
default 如果对 set updateProfile.paletteAttributes.style.palette 命令指定 default 参数,则发出 updateProfile 命令时,当前视图将使用 default.updateProfile.paletteAttributes.style.palette 的值来确定样式属性。
styleAttributes 如果对 set updateProfile.paletteAttributes.style.palette 命令指定 styleAttributes 参数,则对于当前视图,updateProfile 命令将使用 styleAttributes 来作为 stylepalette 指示的样式和调色板的样式属性。如果对 set default.updateProfile.paletteAttributes.style.palette 命令指定 styleAttributes 参数,则对于所有将 updateProfile.paletteAttributes.style.palette 参数设置为 default 的文档视图,updateProfile 命令将使用 styleAttributes 来作为 stylepalette 指示的样式和调色板的样式属性。有关 styleAttributes 的有效语法的信息,参见 styleAttributes 参数。
install 如果对 set default.updateProfile.paletteAttributes.style.palette 命令指定 install 参数,则发出 updateProfile 命令时,所有将 updateProfile.paletteAttributes.style.palette 设置为 default 的视图都将使用 install.updateProfile.paletteAttributes.style.palette 的值来确定样式属性。

描述

query current.updateProfile.paletteAttributes.style.palette 命令返回 updateProfile 命令对于当前视图将用于所指定的样式和调色板的样式属性。

如果未对 set updateProfile.paletteAttributes.style.palette 命令指定任何参数,则将把缺省样式属性用于所指定的样式和调色板。

如果未对 set default.updateProfile.paletteAttributes.style.palette 命令指定任何参数,则将把安装样式属性用于所指定的样式和调色板。

示例

query updateProfile.paletteAttributes.default.white
set updateProfile.paletteAttributes.default.white 0 0 170 255 255 255
set updateProfile.paletteAttributes.default.white default
set updateProfile.paletteAttributes.prefixArea.black
query current.updateProfile.paletteAttributes.default.gray
query default.updateProfile.paletteAttributes.background.white
set default.updateProfile.paletteAttributes.background.white 0 0 0 204 204 204
set default.updateProfile.paletteAttributes.background.white install
set default.updateProfile.paletteAttributes.background.white
query install.updateProfile.paletteAttributes.default.white 

相关参考
query 命令
set 命令
updateProfile 命令
palette 参数
styleAttributes 参数
updateProfile.palette 参数
updateProfile.palettes 参数