St.code does not work

Hi
I use version 1.40.1, and the st.code does not fully work.
The background is white instead of grey, and I have the ‘copy’ icon, but it doesn’t copy

I’ll be glad to get help

Thank you

Works as expected for me. Does the examples in the docs work for you?

Thank you for reaching out!
No it’s weird. It seem the issue come from my screen
Can you try this : https://pentesterguide.streamlit.app/
It’s the app I trying to build - In my screen, the background is white.
And also cannot copy the code via the icon, but this, I don’t think it is from the screen :slight_smile:

See the screenshot, the background is quite a light grey, easy to tell apart from the actually white background of the app (for me at least). The copy button does work (tested Firefox and Edge on Windows 10). Maybe a browser config issue? Not allowing the copy button work could be seen as a privacy/security feature.

Good to know it’s only screen issue or some issue from my PC, and not from the code.
For the copy feature, I didn’t see how to enable it with privacy/security (in Firefox and Chrome)
But it does not matter, if you can do it, I think everything fine
Thank you very much for your precious help!