Skip to content

PHP 8.3+ highlight_string changes affect content styling #208

@AllenJB

Description

@AllenJB

From UPGRADING:

. The resultant HTML of highlight_string and highlight_file has changed.
Whitespace between outer HTML tags is removed. Newlines and spaces
are no longer converted to HTML entities. The whole HTML is now wrapped in
<pre> tag. The outer <span> has been merged with <code>.

This has altered the styling of highlighted PHP code (most noticeably the padding around code blocks has been lost) in both the XHTML and Web formats.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions