Create a website with code content?
Hello, I have a more computer-related question. I'm currently in the process of creating a website and am wondering whether what I want to do is feasible.
The website should allow users to view code examples—for example, a program that calculates prime numbers using Python. The user should be able to see the code on the website and also execute it. This allows the user to actively work with the website independently.
Is something like this possible and can someone give me some example code to show me how I can do it?
PS: I don't work with WordPress and the like, and I program everything myself.
Thanks in advance, LG Melleo
You can Drink– Insert snippets into your side.
@regex9 True, I hadn’t thought about it anymore, but I don’t know how to get it on my website, since there is certainly a copyright of trinket or not?
You set up a free account, create your codesnippet on the platform, and get it through the Share-Function the HTML code you can add on your website.
@regex9 Understanding, thank you for the explanation
Why not?
You can add Python to HTML or even better in PHP
Understanding, thank you for the example 👍🏻