Adding a language selector to code snippets

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
MCFUSR101079
Jr. Propeller Head
Posts: 1
Joined: Thu Nov 17, 2022 10:58 pm

Adding a language selector to code snippets

Post by MCFUSR101079 »

Hi all. I’m trying to add language selection to my code snippets (like this https://stripe.com/docs/api/authentication?lang=ruby).

Would I need to create a custom div or is there a way I can modify the code snippet style in my project?

Thanks!
NorthEast
Master Propellus Maximus
Posts: 6359
Joined: Mon Mar 05, 2007 8:33 am

Re: Adding a language selector to code snippets

Post by NorthEast »

There's nothing like that built into Flare's code snippet control, so you'd have to create your own solution. Perhaps add Flare code snippets for the different languages, then use something like a Flare toggler or your own custom control to select the language.
Post Reply