Q
Q
Qeuvec2020-06-06 11:16:16
Web development
Qeuvec, 2020-06-06 11:16:16

How to embed the compiler in the site?

I saw some compilers on Habré that users insert to answer questions. I would like to embed this on my site, but I still haven’t caught up with where to get the code for this (something like a YouTube video embed code, if it works like that at all), and whether they can be used at all from the copyright side (if it is in theory, it will be used at the enterprise (thesis project)).

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton Solomonov, 2020-06-06
@Qeuvec

For example codepen.
Create a project or open a new one. For example: https://codepen.io/aaroniker/pen/NWGZzXx
At the bottom right, click Embed, configure the desired display and copy the resulting code to your site.

D
Deleting Account, 2020-06-06
@Andriy_Kosmenyuk

Taxi, I did not understand what the compiler has to do with it at all. Frames are used to embed YouTube videos on another site. And to insert code into the body of the response tag . A compiler is generally a program that translates code from one language to another. What does YouTube or Habr have to do with it? Throw me links to those<code></code>

compilers that users put in to answer questions.
.

B
beduin01, 2020-06-06
@beduin01

Here is an example of Python embedding https://rustpython.github.io/demo/
Pretty much all languages ​​can be embedd the same way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question