logging in colour

Posted by Penguin on Sun 07 Apr 2002 01:11 AM — 6 posts, 24,855 views.

#0
I noticed that the only time colour is available for logging is when you click html.. but how do i read it as a normal text without all the funny coding at the side? as in.. is there anyway to view a log with colour?
#1
Sorry if my last post was unclear.. I'll try to rephrase it.
Okay so first I click on logging then check the HTML and Colour box.
When I end the log, it prompts me whether to save as a txt file and I do so.
If I double click on the file I saved it as... all the weird code for the HTML appears together with the actual text. How do I go about viewing my log as it would appear on the MUSHclient screen?

(I'm sort of a newbie when it comes to all these technological terms so please excuse me:P)
Canada #2
Save it as an .htm or .html file, so that Windoze loads your default browser to view it.
Australia Forum Administrator #3
Depending on your browser you may need to add a few lines at the start and end of the log to view it properly.

You can do that by adding these lines to the "file preamble" (or manually copying and pasting to the start of the file) ...


<html>
<head>
<title>*** My world name log ***</title>
</head>
<body bgcolor=black>
<pre>


And add the following to the "file postamble" ...


</pre>
</body>
</html>


What this extra stuff does is effectively turn the log into a web page. It doesn't do it automatically in case you want to use the logs as part of a larger web page.

The <pre> tag is for monospaced font, and for proper line breaks and spacing.

And, of course, do as Magnum says and save the file as .htm (or .html), or rename it afterwards.
USA #4
I don't suppose it's possible to log in text format while preserving the ANSI codes? (Just an idea I had. It might be useful for interoperability reasons, since text is the more basic format. Logging in HTML with color suits my current needs, though.)
Australia Forum Administrator #5
I suppose it could be done, however it isn't now. The problem would arise with MXP which allows arbitrary colours (any RGB combination) which couldn't be rendered back into ANSI codes.