I need to change languages within a file used for generating code in another language.  For example, I might have a Python script generating C or C++ code.

The documentation tells me I can specify at the top of the file for the entire file, but I can't find a way to change this for sections of a file.

Is there a way to do this?

Thank you,

Jonathan