Sublime Forum

Php variables' names wrapped

#1

Hi, I’m new to ST3, I like it, but having a little trouble with php variables.
I really dislike that the dollar sing ($) and the variable name itself gets wrapped to a new line (leaving name and dollar sign on different lines).
I’ve tried changing word_separators with no luck.
Can someone please point me on a direction?
Thanks

0 Likes

#2

I don’t think this is possible without changing the syntax definition. You could edit the PHP syntax definition and remove the special scope for the dollar sign $.

0 Likes

#3

I find this anoying… am I the only one?
thanks for the reply

0 Likes

#4

No, there is also an old topic about the same behavior in LaTeX files:

I also dislike it and would prefer a different wrapping. However it is a minor issue for me personally.

0 Likes

#5

Well, what I would like is that the variable and the $ sign work like a single word, so if it breaks it does it whole.
For example:
Bla bla bla $var
Not
Bla bla bla $
var

0 Likes