可編輯的預留位置變數

<var> 元素可讓讀者將預留位置變數替換成自己的變數 輕鬆分配獎金

一般使用情況

Markdown 點選複製程式碼區塊中可編輯的預留位置變數如下: 預設為可編輯

Edit the name of this PROJECT_ID.

啟用編輯功能

<var> 元素中新增 edit 類別,建立 EDITABLE

停用編輯功能

This example adds the `readonly` class to the <var> element to create an
UNEDITABLE_VARIABLE.
This example adds the `readonly` class to the code block to disable editability
of both VARIABLE_1 and VARIABLE_2.

工具提示

This EDITABLE variable has a tooltip that defaults to the
name of its original placeholder text.
This EDITABLE variable uses a `label`
attribute to create a custom tooltip named
Edit me.

同步處理

具有相同「範圍」的可編輯預留位置變數,每個變數都會 並立即更新以反映新的值。

停用同步處理

This variable synchronizes by default because it is in a click-to-copy code
block. It has a `label` attribute named `variable with scope`:
  VARIABLE

This variable adds the `no-scope` class so that it does not synchronize with the
other variables and has a `label` attribute named `variable without scope`:
  VARIABLE

This variable also synchronizes by default and has a `label` attribute named
`variable with scope`:
  VARIABLE

啟用同步處理

這個預留位置 VARIABLE 是 在程式碼區塊外設定,並使用 scope 屬性來與 請參閱上述停用同步處理功能一節的變數。