Adding a language selector to code snippets

This forum is for all Flare issues related to styles, stylesheets and XML.

Adding a language selector to code snippets

Postby MCFUSR101079 on Fri Nov 18, 2022 11:21 am

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!
MCFUSR101079
Jr. Propeller Head
 
Posts: 1
Joined: Thu Nov 17, 2022 10:58 pm

Re: Adding a language selector to code snippets

Postby Dave Lee on Mon Nov 21, 2022 12:02 am

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.
Dave Lee
Master Propellus Maximus
 
Posts: 6233
Joined: Mon Mar 05, 2007 8:33 am
Location: UK


Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: Google [Bot] and 15 guests