I am having the same problem with txt files (I did not try html). Open the font menu and make any change to the settings, for instance change the font face or the size. As soon as the font settings are updated, the script turns black. You have to do this every time you open the file. I hope the next firmware update will remove this bug.