Making WordPress.org

Opened 10 months ago

Closed 9 months ago

#4805 closed defect (reported-upstream)

Single line code samples don't show underscores

Reported by: joyously Owned by:
Milestone: Priority: normal
Component: Support Forums Keywords: has-screenshots


I'm not sure if this is the syntax highlighter, or the theme for various parts of the site, but at least the support articles that show one line code samples get cut off at the bottom, so underscores are not visible.

There are several examples on https://wordpress.org/support/article/configuring-automatic-background-updates/

Attachments (1)

syntax-highlighter.jpg (22.5 KB) - added by joyously 10 months ago.
the underscores do not show

Download all attachments as: .zip

Change History (5)

10 months ago

the underscores do not show

#1 @pbiron
10 months ago

  • Keywords has-screenshots added

Here's a little info on this.

The underscores display properly for me with Chrome 78.0.3904.70 and Firefox 70, but do not display in IE 11.418.18362.0 and Edge 44.18362.449.0 (on Win10, 1903).

To further complicate matters, in both IE 11 and Edge, the underscores do display in some of the single line code samples but not in others :-(

#2 @mkaz
10 months ago

This is from the plugin, and mostly dependent on font size, zoom your browser and you can see.
The fix is for the plugin to not set the line-height. It effects not just support but other sites too. I noticed it here: https://jetpack.com/support/development-mode/

I have a PR open to address: https://github.com/Automattic/syntaxhighlighter/pull/9

Last edited 10 months ago by mkaz (previous) (diff)

#3 @SergeyBiryukov
10 months ago

  • Component changed from General to Support Forums

Previously: #1928, #2378, #4400.

#4 @tellyworth
9 months ago

  • Resolution set to reported-upstream
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.