0

ZK Forum suggestion: monospace font in [code]

asked 2010-02-02 00:17:31 +0800

gekkio gravatar image gekkio flag of Finland
899 1
http://gekkio.fi/blog

Hello!

I have a minor suggestion regarding the ZK forum:
I think you should use a monospace fonts in code blocks.

Code blocks are rendered as <pre></pre> tags so it's semantically correct but those pre tags have CSS styles defined that override the default monospace fonts with Verdana & its sans-serif friends.

This is wrapped in <pre></pre> but has the following CSS style:
font-family: Verdana,Sans-serif,Arial,'Trebuchet MS','Times New Roman';

A more appropriate style would be:
font-family: monospace;

delete flag offensive retag edit

3 Replies

Sort by » oldest newest

answered 2010-02-02 04:43:34 +0800

PeterKuo gravatar image PeterKuo
481 2

updated 2010-02-02 04:45:18 +0800

Thank you.
We'll discuss it.

That's really easy to implement.

BTW, your icon is really cute.

link publish delete flag offensive edit

answered 2010-02-04 01:16:34 +0800

lovetide gravatar image lovetide
169 1 7

updated 2010-02-04 01:23:40 +0800

hmmm, font-family should consider different OS.

I use Windows XP (Simplified Chinese Edition),, fixed width fonts in this OS contains:
FixedSys,' 新宋体', 'Courier New', 'Lucida Console' etc, but not contains monospace...

I prefer to use font-family:'新宋体';font-size:12px css in my environment.
font-size can't less than 12px in Windows System (Simplified Chinese Edition), or Chinese Characters can't show well and hard to see. 12px or 16px is the best font-size for '新宋体' font.

link publish delete flag offensive edit

answered 2010-02-04 01:21:54 +0800

PeterKuo gravatar image PeterKuo
481 2

One way to personalize is using firefox with stylish plugin.
As I mentioned before.

@lovetide
Your icon is really cute, too.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-02-02 00:17:31 +0800

Seen: 622 times

Last updated: Feb 04 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More