AvalonEdit icon indicating copy to clipboard operation
AvalonEdit copied to clipboard

Can support fixed strings to the editor ?

Open xiaohuahegege opened this issue 2 years ago • 2 comments

I want to ask is it possible to support fixed strings to the editor ? like this:

Line 1: 127.0.0.1:8888 > run command (127.0.0.1:8888 is fixed string, run command is entered by the user, I need to disable the user to remove 127.0.0.1:8888) Line 2: print the command result Line 3: 127.0.0.1:8888 >

xiaohuahegege avatar Jul 14 '22 02:07 xiaohuahegege

You can take a look at SharpDevelop's console implementation based on AvalonEdit: https://github.com/icsharpcode/SharpDevelop/blob/3f3ae2a5d4ffafd98cdf1c09308b9b8d93b0356c/src/Main/Base/Project/Src/Gui/Pads/AbstractConsolePad.cs

Especially https://github.com/icsharpcode/SharpDevelop/blob/3f3ae2a5d4ffafd98cdf1c09308b9b8d93b0356c/src/Main/Base/Project/Src/Gui/Pads/AbstractConsolePad.cs#L319

Hope this helps!

siegfriedpammer avatar Jul 14 '22 13:07 siegfriedpammer

@siegfriedpammer Thank you, is work for me

xiaohuahegege avatar Aug 09 '22 07:08 xiaohuahegege