How to create a Chat Command to open a HTML formatted text file?

Since I only know very little about LUA scripting, I gather this is the best place to do it.

I would like to be able to create a chat command which opens a Derma panel that contains the HTML text file (like the ULX motd) which is in the data folder.
The derma panel only requires a close button, and should be able to interact with the file, being able to click buttons etc.

How would I go about doing this?

Try going threw that and creating one and come back when you run into trouble. Best way to get something done is doing it yourself.

Use concommand.Add(command_name, function_name) to hook function creating panel to command.