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 樣式的選用區。
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.paletteAttributes.style.palette 設為 default 的所有視圖,都將使用 install.updateProfile.paletteAttributes.style.palette 的值, 來判斷發出 updateProfile 指令時的樣式屬性。

說明

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 參數