fern icon indicating copy to clipboard operation
fern copied to clipboard

Editable placeholder variables for code blocks

Open manny-silva opened this issue 1 year ago • 3 comments

Which Fern component?

Fern Docs

How important is this?

P2 - Medium (Would be helpful)

What's the feature?

If would be wonderful if we could mark up sections of code blocks to be editable by the user and have the values persistent across the session and across code blocks. Google has an excellent implementation that let's authors specify variables in their code with defaults, then let users update them.

This would allow for use cases where a user might insert an identifier and have that value be populated across all the code examples that reference the variable in that session.

This could be taken even a step further by allowing the defaults to be programmatically populated, such as when loading user/account information after sign in.

Any alternatives?

No response

Are you interested in contributing this feature?

No

manny-silva avatar Oct 01 '25 22:10 manny-silva

@manny-silva this is an awesome idea, thank you!

fern-support avatar Nov 22 '25 22:11 fern-support

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar May 22 '26 02:05 github-actions[bot]

This issue was closed because it has been inactive for 30 days after being marked stale.

github-actions[bot] avatar Jun 21 '26 02:06 github-actions[bot]