Polishing for the Options window UI

This patch adds syntax highlighting for the HTML templates in the options window and enables the Apply button when the user changes the settings.