Use the following code in the project:
Private Sub btnToggleWW_Click(sender As Object, e As EventArgs) Handles btnToggleWW.Click
RadSyntaxEditor1.IsWordWrapEnabled = Not RadSyntaxEditor1.IsWordWrapEnabled
Me.Text = RadSyntaxEditor1.IsWordWrapEnabled.ToString()
End Sub
When you enable the word wrapping, the horizontal scrollbar is collapsed:
However, when the word wrapping is disabled, the scrollbar doesn't reappear anymore:
This is how it is parsed in Microsoft SQL server Management Studio:
This is the current implementation that is used in RadSyntaxEditor when navigating to the next/previous word, start/end of the current word, etc. It would be good to have an event that allows you to specify the ChartType according to your needs and thus affecting the words navigation in the document.
internal static CharType GetCharType(char c)
{
if (CharsToBeTreatedAsDefault.Contains(c))
{
return CharType.Default;
}
if (LineBreak.IsLineBreak(c))
{
return CharType.NewLine;
}
if (char.IsWhiteSpace(c))
{
return CharType.WhiteSpace;
}
if (char.IsPunctuation(c) || char.IsSymbol(c))
{
return CharType.PunctuationOrSymbol;
}
return CharType.Default;
}