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

PHP variable selection #222

Open
Leo252525 opened this issue Sep 3, 2020 · 7 comments
Open

PHP variable selection #222

Leo252525 opened this issue Sep 3, 2020 · 7 comments

Comments

@Leo252525
Copy link

Hey there,
I'm having troubles with the variable selection in PHP.
I want the plugin to ignore the $ in PHP. So it should only select the "variable" in "$variable".

I excluded the $ in the settings but it still doesn't work for me.

"highlight-selected":
allowedCharactersToSelect: "@%-"

Do you have any tips?

Thanks a lot!

@jordan-webdev
Copy link

jordan-webdev commented Jan 21, 2021

I have the opposite problem. For me I want to include the $, but it's not being selected. The $ is included in the settings.

Also, it is not highlighting other instances in the same file like it used to do.

Note, I am talking about highlighting by double clicking. It works if I highlight by dragging.

@andriy063
Copy link

andriy063 commented Jan 22, 2021

I have the opposite problem. For me I want to include the $, but it's not being selected. The $ is included in the settings.

Also, it is not highlighting other instances in the same file like it used to do.

Note, I am talking about highlighting by double clicking. It works if I highlight by dragging.

Same thing
Any solutions?

@michaelvickersuk
Copy link

For me I want to include the $, but it's not being selected. The $ is included in the settings.

Same, but only since updating Atom to 1.54.0, prior to that I'd not experienced this issue. Status bar count is still working correctly.

Seems there's two workarounds for this by modifying the non word characters:

  • Remove $ from Settings > Editor > Non Word Characters
    Or
  • Add $ to Settings > Packages > Language PHP > Non Word Characters

@hellodaniel
Copy link

Seems there's two workarounds for this by modifying the non word characters

This still doesn't seem to add the same function as before (i.e.: double click to select+highlight word). Would love to get a solution it's driving me up the wall

@michaelvickersuk
Copy link

This still doesn't seem to add the same function as before (i.e.: double click to select+highlight word).

Strange, the workaround fixed the problem for me and the double click now works exactly like it did before.

  editor:
    nonWordCharacters: "/\\()\"':,;<>~!@#%^&*|+=[]{}`?-…"

@hellodaniel
Copy link

I don't know what I did wrong but thanks - yes that worked 🙄 idiot me

@Leo252525
Copy link
Author

For me I want to include the $, but it's not being selected. The $ is included in the settings.

Same, but only since updating Atom to 1.54.0, prior to that I'd not experienced this issue. Status bar count is still working correctly.

Seems there's two workarounds for this by modifying the non word characters:

  • Remove $ from Settings > Editor > Non Word Characters
    Or
  • Add $ to Settings > Packages > Language PHP > Non Word Characters

That worked for me as well. Thanks a lot!

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

No branches or pull requests

5 participants