Plugins>Console>Compile Current Buffer opens a mode-specific commando that should invoke a compiler suitable for compiling the current buffer.
Plugins>Console>Run Current Buffer opens a mode-specific commando that should invoke an interpreter suitable for running the current buffer.
Commandos can be associated with edit modes in the Console>Compile & Run pane of the Global Options dialog box.