Ability to set a dynamic language on the code field #2285
paulpopus
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently the language used for the editor and therefore syntax highlighting has to be set inside the config which kind of limits your experience as you can't always predict what kind of code you're going to add to it.
A nice solution might be to allow the
language
admin config to take a function withdoc
orsiblingData
to be passed into it so the developer can hook their own language field.Alternatively, this additional field is built-in and then the value of it is passed as a prop to the code.
Beta Was this translation helpful? Give feedback.
All reactions