c# - How to enable Virtual Space in AvalonEdit? -


i want achieve "virtual space" functionality, similar 1 in visual studio, in avalonedit.

i.e. caret positioned beyond end of text line, , if press key, there spaces automatically added match.

i used feature, neither googling nor studying avalonedit's code gave me clues on how enable it, if supported @ all.

if not, suggestions how extend caret handling mechanisms nice.

thanks!

edit: virtual space support has been added avalonedit in version 4.2.0.8283. set texteditor.options.enablevirtualspace = true;.

below original answer.


it's not supported.

if want try adding it, make sure read "coordinate systems" documentation (in file on codeproject). you'll want extend "visual column" positions after line end valid. , you'll have adjust position<->column calculations (visualline.getvisualcolumn , friends). use textview.widespacewidth figure out columns past end of line.

the above should allow use mouse place caret in virtual space. after that, you'll need change caret movement (arrow keys, caretnavigationcommandhandler) , text input logic (textarea.performtextinput) support virtual space.

and if you're successful above steps, don't forget contribute changes avalonedit. :-) while i'm not fan of virtual space myself, need make rectangleselection work properly.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -