Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Sun Nov 09, 2008 4:08 pm   

HTML Logging Settings
 
IS there a place where I can alter some of the HTML logging settings like I did for ANSI color? Right now, if open an HTML file up I get a white background with black text. If I open it up in the editor and then save as .htm (which it already is) it has a black background and white text, would be nice to cut out that step completely though.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Nov 10, 2008 5:52 pm   
 
It's HTML. The main text and background color for HTML is controlled either by attributes in the BODY tag, or by CSS styles. You have to add those to your HTML file yourself. CMUD does not create or use styles. The intent is that you would just copy/paste the BODY section of the HTML log into whatever you want (like a web page, etc). Then it would use whatever colors and styles you have set up on that web site.

Think about it another way...normal text from the MUD is displayed using your "Default Text Color". The ANSI ESC [ 0 m code resets the MUD output to the "default" color. In the HTML Log output, this "default color" will use whatever style/color you assign to your BODY of your HTML page.

Now, as far as the Editor changing the color to black background and white text, that's a side effect of the editor itself. The Save As HTML function in the editor window does it's own HTML conversion that is completely different from the simple HTML logging in CMUD. The editor is a rich-text editor that allows you to change text styles, change colors, and all sorts of other things (it's actually the same Editor component as used in zApp that allows you to create tables and lots of other stuff). When you use Save As HTML, this 3rd party editor component is creating a new HTML file from scratch based upon the rich-text data in the editor window. It has a lot more support for style and CSS than the CMUD logging.

The black background and white text are coming from your Editor Style settings in your preferences. It has nothing to do with logging. Any file that you create in the editor and Save As HTML will have that color.

Just compare the original *.htm log file with the Save As HTML result from the editor. You'll see that the files are completely different.

Anyway, the bottom line is no. The CMUD logging output is intended to be simple HTML that you can paste into other documents easily.
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Mon Nov 10, 2008 9:29 pm   
 
Yeah, I checked out the HTML and noticed it didn't even have any visible body tags or anything. Opening it in the Editor is fine, just an extra step.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net