Change font on code blocks used in messages????

This forum is meant for anything you would like to share with other visitors
Anonymous

Change font on code blocks used in messages????

Post by Anonymous »

Would you please consider changing this font used to display raw code samples here on the website? I find it hard to read for several reasons...

It is a pretty large font and it often requires wrapping to fit each line in the web browse, and it is in italics, which is *never* how we see real code, and it is bold which is never how we see real code.

I think a mono spaced font, without bold, and bout 1 size smaller would be much better.

I think this:
2019-04-12_14-17-36.png
2019-04-12_14-17-36.png (8.96 KiB) Viewed 525 times
Looks better than this:
2019-04-12_14-17-22.png
2019-04-12_14-17-22.png (11.22 KiB) Viewed 525 times
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Change font on code blocks used in messages????

Post by robert »

Matt,
I have changed the style.
- no longer italic
- smaller font
- line height has been reduced.
Does it look better now ?

Code: Select all

Function Start as Void
? "Does This Look Better Now ?"
Return



Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Change font on code blocks used in messages????

Post by Chris »

I think it is indeed better now!
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
lumberjack
Posts: 727
Joined: Fri Sep 25, 2015 3:11 pm
Location: South Africa

Change font on code blocks used in messages????

Post by lumberjack »

I second that!
______________________
Johan Nel
Boshof, South Africa
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Change font on code blocks used in messages????

Post by FFF »

Yes. Now only reducing the tab width is left...
Ah, could the left column with avatar/name be changed to a "top line" ? A lot of screen estate occupied for no real gain...
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
FoxProMatt

Change font on code blocks used in messages????

Post by FoxProMatt »

Robert - much better.

Thanks
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Change font on code blocks used in messages????

Post by robert »

Karl,
I can send you the CSS. Then you can figure out how to change that <g>.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Change font on code blocks used in messages????

Post by FFF »

Robert,
now, the tab width should be doable.
Changing the layout, ahem, is harder ;).
Thought, there might be another theme available...

Karl
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Change font on code blocks used in messages????

Post by robert »

Karl,
There IS no tab width in web pages afaik.
If you see a wide tab then the author has inserted many spaces

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Change font on code blocks used in messages????

Post by FFF »

Oh - just realized, Matt showed screenshots, not real code. Sorry....

Karl
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Post Reply