The buffer-local property "wordBreakChars" defines (from the help:) "Characters, in addition to spaces and tabs, at which lines may be split when word wrapping".
My first line of a file is:
:wrap=soft::maxLineLen=50::wordBreakChars=_\\.:
But wrapping is not done at backslash or dot or "_".
Logged In: YES
user_id=285591
Originator: NO
Hi, it seems this local property is used only for hard wrap.
Soft wrap uses the token marker to know if it should wrap.
But it seems the syntax package do not use this property
Logged In: YES
user_id=1486645
Originator: YES
Means, that soft wrap performs wrapping only at spaces and tabs actually?
Generally I'd expected, that soft and hard wrap have the same results for my eyes.
A good reason for differences I could see in the fact, that hard wrap really edits the file and probably should be restricted in wrapping. But that is not the case.
See also Feature Requests item #1624755.
Logged In: YES
user_id=935841
Originator: NO
First question: why is "extra word characters" showing up in Editing properties and not this other "wordBreakChars" ?
I would like to see both of these in the EditingOptionsPane.
Second, I want to bump up the priority of this item. I would like to see wordBreakCharacters recognized in soft-wrap also. Although this may be something that we need to put off until after the textarea is replaced...
A patch using BreakIterator has been submitted.
https://sourceforge.net/support/tracker.php?aid=2483695
The patch may reduce or eliminate the needs of "wordBreakChars" as an
additional property.
kazutoshi, are you still working on this?
I'm not working on this. However, the bellow mentioned patch was
committed at r21116 and the change made it easier to tweak the rule of
soft wrap and hopefully unify the rule with hard wrap. But it still
needs much work.
I found the property wordBreakChars has been there since the initial
revision in CVS. It doesn't care about soft wrap in the first place.
http://jedit.svn.sourceforge.net/jedit/?view=rev&rev=3791
http://jedit.svn.sourceforge.net/viewvc/jedit/jEdit/trunk/doc/users-guide/customizing.xml?view=markup&pathrev=3791
http://jedit.svn.sourceforge.net/viewvc/jedit/jEdit/trunk/org/gjt/sp/jedit/textarea/JEditTextArea.java?view=markup&pathrev=3791
I updated the documentation to match the fact in r21611.