Variabel placeholder yang dapat diedit

Elemen <var> memungkinkan pembaca mengganti variabel placeholder dengan variabel mereka sendiri masing-masing.

Penggunaan umum

Variabel placeholder yang dapat diedit dalam blok kode klik-untuk-menyalin Markdown dapat diedit secara {i>default<i}.

Edit the name of this PROJECT_ID.

Mengaktifkan kemampuan edit

Tambahkan class edit ke elemen <var> untuk membuat variabel yang EDITABLE di luar blok kode.

Menonaktifkan kemampuan pengeditan

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.

Tooltip

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.

Sinkronisasi

Variabel placeholder yang dapat diedit dan memiliki cakupan yang sama akan disinkronkan dengan setiap variabel lainnya dan segera diperbarui untuk mencerminkan nilai yang baru.

Menonaktifkan sinkronisasi

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

Mengaktifkan sinkronisasi

Placeholder VARIABLE ini adalah diatur di luar blok kode dan menggunakan atribut scope untuk melakukan sinkronisasi variabel di bagian menonaktifkan sinkronisasi di atas.