The custom HTML widget allows you to add html code to a widget. It has syntax highlighting, auto-complete and error detection.
Note: Javascript will be removed automatically from widgets when they are saved. This means if you try to use code provided that includes Javascript it will be removed.