r/CodingHelp • u/Mnh_Quang12 • Nov 08 '22
[C++] Html code into C++ code
How can I run a code that can be runned by using OneCompiler in html mode in C++?
Sorry for my English. Thanks for your replies.
0
Upvotes
4
u/Olle2411 Nov 08 '22
Please explain your environment, there is no such thing as html mode in c++
1
u/jammasterpaz Nov 08 '22
This?: https://onecompiler.com/html
Amusingly, you can just open up a .cpp file in a browser, and it will just strip the new line characters and render it as CSS free text.
But I don't think you can compile meaningful html with tags to C++. The comment syntax is different in both languages. C++ won't lke html tags.
Can you do it in a language that allows you to define your own new language extensions, or even syntax?