Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support formatting of PHP files #45

Open
markiewb opened this issue Sep 26, 2014 · 4 comments
Open

Support formatting of PHP files #45

markiewb opened this issue Sep 26, 2014 · 4 comments

Comments

@markiewb
Copy link
Collaborator

No description provided.

@funfried
Copy link
Owner

I wasn't able to find the necessary Eclipse libraries, please comment or raise a PR if someone knows where to find those.

@funfried funfried changed the title Support of PHP files Support formatting of PHP files Dec 22, 2019
@funfried
Copy link
Owner

So far I could not find a promising Java implementation of a PHP formatter, please let me know if someone knows any.

@steamboatid
Copy link

So far I could not find a promising Java implementation of a PHP formatter, please let me know if someone knows any.

what about using 3rd party tools executed on the shell, like phpcbf ?

phpcbf can reformat the whole file, but not the selected line.

@funfried
Copy link
Owner

funfried commented Dec 4, 2022

Hi @steamboatid,

first of all, thanks for sharing your idea!

The problem with that solution would be that NetBeans needs a way to now how to indent the next line when you are editing a file and you could of course just hardcode that or ignore it somehow, but that would mean to reformat the whole file after each new line and that's not really a good idea. Anyway I have a look at phpcbf as I have never heard of it before and check if there might be a possibility to include it into my NetBeans plugin.

Cheers,
Fabian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants