-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Labels
editor-corefeature-requestRequest for new features or functionalityRequest for new features or functionality
Milestone
Description
Hi,
we use the monaco editor for a project and we need to hide some parts of the code from the user, because there is a Header and a Footer generated, and only a part between which should be editable by the user. We need the whole file in the background, to have a running code completion.
export class GeneratedClass {
public GeneratedProperty1: string;
public GeneratedProperty2: string;
construcor() {}
// User Code starts here
public Property1ByUser: string;
public Property2ByUser: srting;
public MethodByUser() {}
// User Code ends here
}
The user should only be able to edit the code between the two comments.
Is it possible to hide the other parts from the user, or disable them in any way?
Thanks,
Achim
JacobEvelyn, stefan-lacatus, Kang-Jun-sik, infi-pc, benhutchison and 24 more
Metadata
Metadata
Assignees
Labels
editor-corefeature-requestRequest for new features or functionalityRequest for new features or functionality