This may be an obvious question, but it's been on my mind lately. I've been researching some internet programing languages and I noticed that code from one language could be inserted right into the middle of another code, written in another programing language. This process is referred to as
embedding. For example, a PHP code is embedded right into a HTML code on this image I found on Wikipedia (the colored syntax is the PHP code):
(This is also done with Java, in the various "Java Apps" on various websites [written in HTML])
Now this could be a useful feature in robot programing; I could create a script in a simple, general language and use a more complicated language in sections were it is needed (it would be a hybrid code). However, I have not seen this implemented in the high-level languages we use (a C++ code embedded into a Java or V.B. code, etc.). Is it possible to do this with high-level languages, or is embedding only a feature of HTML? If it is possible, would it require separate compilers (for each embedded language)?