Added a function to display a file in the code editor.