prettier / prettier/plugin-php
Support for --range-start and --range-end
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.9k
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I’m trying to format only specific sections of files in a legacy codebase using the --range-start and --range-end options.
This works fine with JS files but when using this plugin for PHP, prettier doesn’t apply any changes and essentially fails silently.
Is this a known issue? I would greatly appreciate any guidance on how to resolve this.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing formatting with --range-start and --range-end on a PHP file, then inspect how the plugin handles these options compared with JavaScript formatting. Done means the selected PHP range is formatted and unsupported or invalid ranges do not fail silently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100