"Formatted" code tags' colors

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

"Formatted" code tags' colors

Post by Blue Shadow » Sat Oct 29, 2016 1:03

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: 3616
Joined: Sat May 13, 2006 10:30

Re: "Formatted" code tags' colors

Post by Rachael » Sat Oct 29, 2016 1:11

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.
Spoiler: Zen Sarcasm

User avatar
Blue Shadow
Global Moderator
Global Moderator
Posts: 304
Joined: Sun Aug 29, 2010 6:09

Re: "Formatted" code tags' colors

Post by Blue Shadow » Sat Oct 29, 2016 7:42

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: 3616
Joined: Sat May 13, 2006 10:30

Re: "Formatted" code tags' colors

Post by Rachael » Sat Oct 29, 2016 14:28

Yeah that looks nice. It won't be until later tonight before I cen see about implementing it, sorry.
Spoiler: Zen Sarcasm

User avatar
Blue Shadow
Global Moderator
Global Moderator
Posts: 304
Joined: Sun Aug 29, 2010 6:09

Re: "Formatted" code tags' colors

Post by Blue Shadow » Sat Oct 29, 2016 23:35

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: 3616
Joined: Sat May 13, 2006 10:30

Re: "Formatted" code tags' colors

Post by Rachael » Sun Oct 30, 2016 0:41

The colors are in now. Press F5 if you do not see them.
Spoiler: Zen Sarcasm

Post Reply

Return to “General”