Page 1 of 2

Code box font

Posted: 10 Oct 2013, 23:55
by just me
CodeBox.PNG
CodeBox.PNG (6.47 KiB) Viewed 9407 times
Chrome on Win7.

Re: Code box font

Posted: 11 Oct 2013, 00:12
by joedf
seems fine, i have chrome, win7 also... hmm
2013-10-11_010940.png
2013-10-11_010940.png (13.96 KiB) Viewed 9403 times

Code: Select all

msgbox % A_scriptfullpath
Msgbox % "346*89 = " (346*89)

Re: Code box font

Posted: 11 Oct 2013, 00:22
by just me
Do you use user-styles?

Re: Code box font

Posted: 11 Oct 2013, 02:22
by lexikos
Mine looks the same as shown by just me.

Looks like the rule is font-size: 0.6em; for .codecontent in stylesheet.css. That's a bit extreme. Inline code inherits its font size, and even that's smaller than ideal.

Re: Code box font

Posted: 11 Oct 2013, 02:50
by smorgasbord
@lexikos same/alike on firefox on windows 7 ultimate

Re: Code box font

Posted: 11 Oct 2013, 03:15
by lexikos
@smorgasbord of course, it's designed to display this way.

There are some PHP code blocks in this thread which look more normal - because they have font-size: 200% in the inline styles.

Re: Code box font

Posted: 11 Oct 2013, 03:23
by Blackholyman
ok same here

@joedf you seem to be using a user-style as you also have the [SELECT ALL] Option

Re: Code box font

Posted: 11 Oct 2013, 04:27
by nnnik
Same here.

Re: Code box font

Posted: 11 Oct 2013, 04:38
by lexikos
Blackholyman wrote:@joedf you seem to be using a user-style as you also have the [SELECT ALL] Option
joedf is simply using the prosilver board style, which is an option in the User Control Panel, under Board Preferences. Anyone with small code font is using subsilver2, which was used on the old old forum.

Re: Code box font

Posted: 11 Oct 2013, 04:45
by nnnik
Then he's using both prosilver and cusiom user script.

Re: Code box font

Posted: 11 Oct 2013, 06:37
by lexikos
Why do you say that?

[Select all] shows up when using prosilver. Code boxes are also expanded by default, not collapsed.

Re: Code box font

Posted: 11 Oct 2013, 06:53
by Blackholyman
lexikos wrote:joedf is simply using the prosilver board style, which is an option in the User Control Panel, under Board Preferences. Anyone with small code font is using subsilver2, which was used on the old old forum.
oh i see thanks

Re: Code box font

Posted: 11 Oct 2013, 07:47
by joedf
No Lexikos is right! I'm not using user-styles, it is simply the prosilver theme.

Re: Code box font

Posted: 11 Oct 2013, 09:11
by tank
OK so the problem occurs when the code box is the default code box.

I will work on that today

Re: Code box font

Posted: 11 Oct 2013, 13:39
by tank
ok codebox modifications should be done now

Code: Select all

msgbox autohotkey default language

Code: Select all

msgbox autohotkey selected language ; comment is green

Re: Code box font

Posted: 11 Oct 2013, 14:07
by kon
The font size is fixed! It looks great now. Thanks tank! :D

Built in variables seems to have developed a bug:

Code: Select all

;Trying to display A_Index
A_Index
This seems to be the offending html:

Code: Select all

<a target="_blank" href="http://www.auto-<a target="_blank" href="http://www.auto-hotkey.com/docs/commands/Hotkey.htm"><span style="color: #FF00FF; font-style: italic;">hotkey</span></a>.com<span style="color: #000000; font-weight: italic;">/</span>docs<span style="color: #000000; font-weight: italic;">/</span>Variables.htm#A_Index"><span style="color: #88FF88;">A_Index</span></a>
It looks like it is linking to A_Index in the docs, but then it is mistaking "hotkey" in "http://www.auto-hotkey.com/docs/Variables.htm#A_Index" for a hotkey command and linking/highlighting that also.

Re: Code box font

Posted: 11 Oct 2013, 14:11
by tank

Code: Select all

;Trying to display A_Index
hotkey.com/docs/Variables.htm#A_Index">A_Index
thanks i disabled keyword_links for now which was the default. I had enabled that as an experiment

Re: Code box font

Posted: 11 Oct 2013, 14:13
by smorgasbord
code box is awesome now on firefox on windows 7 ultimate

Re: Code box font

Posted: 11 Oct 2013, 18:32
by lexikos
All that empty space is a bit unusual. Could you replace height with max-height? It appears to be set both in .codecontent and inline. Currently when you "expand" the box, the empty space disappears...

I'm not a fan of the dotted line between each code line. I think it makes the code look more "noisy".

Also, bright green on white is pretty terrible, but that can wait.

Re: Code box font

Posted: 11 Oct 2013, 21:18
by tank
i was waiting for any comment about the dotted line so i could remove it with a clean conscience
let me know what you think about the recent changes