"Formatted" code tags' colors

General discussion about DRD & website stuff.
Blue Shadow
Global Moderator
Global Moderator
Posts: 308
Joined: Sun Aug 29, 2010 6:09

"Formatted" code tags' colors

Post by Blue Shadow »

The colors of the formatted code tags make the text between them hard to read because the colors are bit too dark:

Code: Select all

HudMessage(s:"Blah blah"; HUDMSG_PLAIN, 1, CR_GREEN, 0.5, 0.2, 10.0); 
Could the colors be changed to something a bit brighter, perhaps?
User avatar
Rachael
Developer
Developer
Posts: 3640
Joined: Sat May 13, 2006 10:30

Re: "Formatted" code tags' colors

Post by Rachael »

Do you have any suggestions? Give me some hex triplets and I'll see about putting them in.

FYI, this is what your HTML looks like for that code block:

Code: Select all

<code>
<span class="syntaxdefault">HudMessage</span>
<span class="syntaxkeyword">(</span>
<span class="syntaxdefault">s</span>
<span class="syntaxkeyword">:</span>
<span class="syntaxstring">"Blah blah"</span>
<span class="syntaxkeyword">;</span>
<span class="syntaxdefault"> HUDMSG_PLAIN</span>
<span class="syntaxkeyword">,</span>
<span class="syntaxdefault"> 1</span>
<span class="syntaxkeyword">,</span>
<span class="syntaxdefault"> CR_GREEN</span>
<span class="syntaxkeyword">,</span>
<span class="syntaxdefault"> 0.5</span>
<span class="syntaxkeyword">,</span>
<span class="syntaxdefault"> 0.2</span>
<span class="syntaxkeyword">,</span>
<span class="syntaxdefault"> 10.0</span>
<span class="syntaxkeyword">); </span>
<span class="syntaxdefault"></span>
</code>
It should be pretty easy to CSS that up.
Blue Shadow
Global Moderator
Global Moderator
Posts: 308
Joined: Sun Aug 29, 2010 6:09

Re: "Formatted" code tags' colors

Post by Blue Shadow »

Would this color scheme work?

Image

The colors are as follows:

Code: Select all

Default: 4D97C4
Keyword: A36D7C
String:  3C993C
Comment: 808024
User avatar
Rachael
Developer
Developer
Posts: 3640
Joined: Sat May 13, 2006 10:30

Re: "Formatted" code tags' colors

Post by Rachael »

Yeah that looks nice. It won't be until later tonight before I cen see about implementing it, sorry.
Blue Shadow
Global Moderator
Global Moderator
Posts: 308
Joined: Sun Aug 29, 2010 6:09

Re: "Formatted" code tags' colors

Post by Blue Shadow »

Eruanna wrote:It won't be until later tonight before I cen see about implementing it, sorry.
No worries. And thanks in advance.
User avatar
Rachael
Developer
Developer
Posts: 3640
Joined: Sat May 13, 2006 10:30

Re: "Formatted" code tags' colors

Post by Rachael »

The colors are in now. Press F5 if you do not see them.
Post Reply

Return to “General”