Displaying code blocks from a file

By this, do you want that your code with the explanation should be dynamically rendered in your particular template page from D.B. tables instead of writing those in html files?