Düzenlenebilir yer tutucu değişkeni

<var> öğesi, okuyucuların yer tutucu değişkenleri kendi değişkenleriyle değiştirmesine olanak tanır. değerler.

Genel kullanım

Markdown tıkla ve kopyalamak için kod bloğundaki düzenlenebilir yer tutucu değişkenleri düzenlenebilir.

Edit the name of this PROJECT_ID.

Düzenlenebilirliği etkinleştirme

Şu özelliklere sahip bir değişken oluşturmak için <var> öğesine bir edit sınıfı ekleyin: EDITABLE, bir kod bloğunun dışında.

Düzenlenebilirlik devre dışı bırakılıyor

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.

İpuçları

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.

Senkronizasyon

Aynı kapsama sahip düzenlenebilir yer tutucu değişkenlerin her biriyle senkronize edilir otomatik olarak güncellenir ve yeni değeri yansıtacak şekilde hemen güncellenir.

Senkronizasyonu devre dışı bırakma

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

Senkronizasyonu etkinleştirme

Bu yer tutucu VARIABLE bir kod bloğunun dışında ayarlanır ve ile senkronize etmek için scope özelliğini kullanır. yukarıdaki senkronizasyonu devre dışı bırakma bölümünde bulunan değişkenler.