Posted 1 year ago by Wolfgang Steinert
Version: 17.2.0665


I plan on building an application that requires a code editor like this Syntax Editor with VB.NET support. In my case I would like users to edit only a part of a document (the text inside a function), so my question is whether it is possible to let the user edit only part of the document and hide the rest of it. I'd still like the user to be able to use autocomplete for things defined in the rest of the document, like e.g. Properties/Functions of the class or parameters given in the function header.

e.g. consider this document:

Imports MyApp.Common
Imports MyApp.ModuleA

Public Class TheClass
	Inherits TheSuperClass
	Public Function TheFunction(param as String) As String
		' User should be allowed to edit and view the code from here ...

		Return param

		' ... to here, but still be able to access with autocomplete "param" or
		' any properties/functions/... of the class
	End Function
End Class


Would this be possible? Do you have any examples available?

Kind regards,

Wolfgang Steinert

[Modified 1 year ago]

Comments (2)

Answer - Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA


Yes we fully support that.  Check out the "SyntaxEditor / Text/Parsing Framework / Parsing / Code Fragments" topic for information on it.  Also our Code Fragments QuickStart sample in the main sample project shows this feature off.

Actipro Software Support

Posted 1 year ago by Wolfgang Steinert

Awesome, thank you :)

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.