prettier / prettier/plugin-php
Converting short php tags
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.9k
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Description
I find few code having shorted PHP tag <? ?> . Is there any way in the configuration if these tags get converted into whole long tag like <?php ?>? This is plugin has abrupt behavior for the shorter tags. Either blank ?> are appended to code since starting short tag is not parsed.
Second point whole the PHP code inside PHP tags remove the tab indent make it in the same line with PHP tag? Any configuration changes for that as well. THough tab-indent is enabled in .prettierrc.
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 the short PHP tag and indentation cases described in the issue, using the plugin's .prettierrc settings as the configuration point. Read the plugin's configuration and formatting documentation to determine whether these behaviors are supported. Done means the requested tag conversion and PHP indentation behavior are clearly specified and consistently handled or documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100