Redigerbar plassholdervariabel

<var> -elementet lar lesere erstatte plassholdervariabler med sine egne verdier.

Generell bruk

Redigerbare plassholdervariabler i en Markdown klikk for å kopiere kodeblokk kan redigeres som standard.

Edit the name of this PROJECT_ID.

Aktiverer redigerbarhet

Legg til en edit til <var> -elementet for å lage en variabel som er EDITABLE utenfor en kodeblokk.

Deaktiverer redigerbarhet

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.

Verktøytips

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.

Synkronisering

Redigerbare plassholdervariabler som har samme omfang , synkroniseres med hverandre og oppdateres umiddelbart for å gjenspeile den nye verdien.

Deaktiverer synkronisering

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

Aktiverer synkronisering

Denne plassholderen VARIABLE er satt utenfor en kodeblokk og bruker scope attributtet til å synkronisere med variablene i delen for deaktivering av synkronisering ovenfor .