Compiling Custom Code

I want to ask how can I compile the custom code. I have put the example code in the custom code block and nothing is shown. Is there any compile script need to be executed and how can I execute?