Opened 7 years ago
Closed 7 years ago
#15910 closed defect (fixed)
<code> looks like Normal Text in Help Browser
Reported by: | Hb--- | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 18.02 |
Component: | Core | Version: | |
Keywords: | help browser CSS formatting wiki | Cc: |
Description (last modified by )
Keystrokes, key
=value
pairs and URLs are formatted in the Wiki by enclosing them with `
characters (ASCII 96). TracWiki translates this to <code>. The alternative is {{{three curly brackets}}}
which is translated to <preformat> in HTML.
The Wiki shows <code> in a monospaced font with a brown frame.
In the Online Help Browser both styles are missing. Therefore important keywords can't be distinguished from normal text, see wiki:/Help/ErrorMessages.
JOSM seems to strip some parts of the wiki page before displaying according to DevelopersGuide/HelpSystem
Expected result is that Online Help pages look them same as Wiki pages. So changing the wikis CSS is an option, but a bad one.
Attachments (2)
Change History (7)
comment:1 by , 7 years ago
Description: | modified (diff) |
---|
comment:2 by , 7 years ago
Milestone: | → 18.02 |
---|
comment:3 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
by , 7 years ago
Attachment: | patch1.txt added |
---|
comment:4 by , 7 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Java does not show the border because <code> is an Inline-Element in HTML and Java does not understand display:block;
to make a Block-element from it. So margin, border and padding cannot be used. Java 9 has the same limitations.
But a more colored background and a slightly larger font can be used to better distinguish <code> from normal text. Please see my suggestion in the Help Browser: Main Help (En or De) > HowTo (second link in content) > SandBox (last link on page).
Please see the patch. Perhaps font-size:108% is even suitable.
In 13416/josm: