"Formatted" code tags' colors

Post a reply

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angel: :angry: :beer: :bfg: :chaingun: :cheers: :blergh:
View more smilies

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1.5 MiB.

Expand view Topic review: "Formatted" code tags' colors

Re: "Formatted" code tags' colors

by Rachael » Sun Oct 30, 2016 0:41

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

Re: "Formatted" code tags' colors

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.

Re: "Formatted" code tags' colors

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.

Re: "Formatted" code tags' colors

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

Re: "Formatted" code tags' colors

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.

"Formatted" code tags' colors

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?

Top