Thanks for your reply. I would like to know if it is possible to do it like this in Lyx:
Insert - Box - Programming Listing - Julia
I could not find Julia in the options, so I have to use Matlab since they have similar syntax. Is there any way I could download the Julia Programming Listing Package for Lyx?