Embed Code in HTML Page

I have developed a script to replace, in a piece of julia code, characters which are special to html. These characters are replaced with the entities that are safe to use in a html page. This page is about how to include the processed version of the code into a html page. I am avoiding the use of javascript or php for now although both are possible alternatives. The method presented here has the benefit of simplicity!

The script used to prepare the processed code is called HtmlSpecialCharacters.jl. The script enforces a naming convention: the input filename given to the script simply has '.html' appended to it for the output filename.

In the example below, a piece of code which converts a csv file to a latex file is shown.

Using iframe

Notes

The incoming file must be enclosed in the pre html tag so the julia script HtmlSpecialCharacters.jl does this. The iframe container doesn't adjust its size to fit the content, this must be done manually inside the iframe tag. It appears that this cannot be done by having a style for iframe which includes the width and height. However, css can do other things such as specifying a background colour and a border. Where scroll bars are needed they are automatically supplied. Unfortunately the one at the bottom of the iframe does obscure text until it is scrolled up. Note that the iframe's frameborder attribute must be set to 0 unless the default black border is wanted. The title attribute enables screen readers to describe the contents of the iframe.