WordPress.org

Making WordPress.org

Opened 6 weeks ago

Closed 5 weeks 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
Cc:

Description

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 6 weeks ago.
the underscores do not show

Download all attachments as: .zip

Change History (5)

@joyously
6 weeks ago

the underscores do not show

#1 @pbiron
6 weeks 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
6 weeks 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/Viper007Bond/syntaxhighlighter/pull/114

Version 0, edited 6 weeks ago by mkaz (next)

#3 @SergeyBiryukov
6 weeks ago

  • Component changed from General to Support Forums

Previously: #1928, #2378, #4400.

#4 @tellyworth
5 weeks ago

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