You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to achieve pretty simple goal, in my documentation I have code samples to use my API, I've made a little component that allows your to enter your API Key under the TOC and I'd like to replace API Key in the samples, for instance:
But anything that goes into a code block is just treated as text. Which, of course, makes sense.
Is there any elegant (or not elegant) way to replace YOUR_API_KEY with value from a variable?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying to achieve pretty simple goal, in my documentation I have code samples to use my API, I've made a little component that allows your to enter your API Key under the TOC and I'd like to replace API Key in the samples, for instance:
But anything that goes into a code block is just treated as text. Which, of course, makes sense.
Is there any elegant (or not elegant) way to replace
YOUR_API_KEY
with value from a variable?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions