Assuming for some reason the HTML logging doesn't work for you, another simpler approach these days it to write a plugin using Lua, that has a trigger. In Lua you can get a fourth argument to triggers that is a style list for the matching line. Then simply go through the style list and output the HTML. Pretty easy, and you can make the trigger include/exclude the lines you want.
This sort of thing would do the job, roughly:
function html_log (name, line, wildcards, styles)
for _, v in styles do
AppendToNotepad ("log",
'<span style="color: ',
RGBColourToName (v.textcolour),
'"; background: ',
RGBColourToName (v.backcolour),
'">',
FixupHTML (v.text),
'</span>');
end -- for
AppendToNotepad ("log", "\r\n");
end -- function html_log
Example output:
<span style="color: silver"; background: black"><1000/1000hp 100/100m 110/110mv 2000/315816750xp> </span>
<span style="color: red"; background: black">A Marble Corridor</span>
<span style="color: silver"; background: black">Congratulations! You have come far in your training. Your next step is</span>
<span style="color: silver"; background: black">getting your equipment from the cage mobs for your chosen class. North</span>
<span style="color: silver"; background: black">of here is the Academy Healer, Lord Toric. He will cast spells on you,</span>
<span style="color: silver"; background: black">to help with your fights. Sit with him until you are ready to proceed in</span>
<span style="color: silver"; background: black">your training.</span>
<span style="color: lime"; background: black">Exits: north south.</span>