Making an interactive table? (example GIF included)

Hi! Quick question-how can I make something like this for my site?

Thanks in advance for any help!

Use a slide show and a button click event to change the slide
Something like this

export function button1_click(event) {
 $w('#slideshow1').changeSlide(1)
}

And also need some code to change the color of the code on button click
this site will help yo get started

Thank you, I’ll give it a go.