Skip to content

Avoid wrapping PHP 8.5 release code blocks#1914

Open
theodorejb wants to merge 2 commits into
php:masterfrom
theodorejb:improve-code-blocks
Open

Avoid wrapping PHP 8.5 release code blocks#1914
theodorejb wants to merge 2 commits into
php:masterfrom
theodorejb:improve-code-blocks

Conversation

@theodorejb

Copy link
Copy Markdown
Contributor

This improves readability (particularly on smaller screens), since code blocks with overflow can be easily scrolled horizontally to read longer lines, rather than trying to visually parse syntax with line breaks in unintended places (which can even appear invalid when a line break is in the middle of a token).

Before:
before 2

After:
after 2

@saundefined

Copy link
Copy Markdown
Member

@theodorejb

Copy link
Copy Markdown
Contributor Author

I also added a commit to allow linking to the "Additional features and improvements" and "Deprecations and backward compatibility breaks" headings. This works on the other release pages, but for some reason wasn't implemented on the PHP 8.5 release page.

This improves readability (particularly on smaller screens), since code blocks with overflow can be easily scrolled horizontally to read longer lines, rather than trying to visually parse code with line breaks in unintended places (which can even appear as invalid syntax when a line break is in the middle of a token).
This is possible on the previous release pages, but for some reason wasn't implemented for PHP 8.5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants