JavaScript for WordPress › Forums › Gutenberg Development › Code Editor › Reply To: Code Editor
April 8, 2018 at 11:12 pm
#44663
Zac Gordon
Keymaster
Could you use a selector like a radio button in the inspector control that let’s you assign the type of code block on the backend? Then I’m guessing some class or something passed as from an attribute could let the frontend know the kind of code you’re working with. Would that work or address the problem?