edit word separators #13009

Closed
xjx424 opened this Issue Dec 27, 2016 · 1 comment

Projects

None yet

1 participant

@xjx424
xjx424 commented Dec 27, 2016

Is there anyway to change the word separators when double clicking?
For instance, when I double click $variable I would like it to only select "variable", not "$variable"
Some setting like this
"word_separators": "./\()"'-:,.;<>!@#$%^&*|+=]{}`?"

@xjx424
xjx424 commented Jan 9, 2017 edited

To change selected text open C:\Program Files\Adobe\Adobe Dreamweaver CC 2017\www\thirdparty\CodeMirror\mode\php\php.js

Change line 91 from
CodeMirror.registerHelper("wordChars", "php", /[\w$]/);
to
CodeMirror.registerHelper("wordChars", "php", /[\w]/);

To add other characters such as hyphen change add after the "w" like so
CodeMirror.registerHelper("wordChars", "php", /[\w-]/);

@xjx424 xjx424 closed this Jan 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment