microsoft / monaco-editor

A browser based code editor
https://microsoft.github.io/monaco-editor/
MIT License
40.5k stars 3.6k forks source link

Provide ability to block editing specific lines #953

Open sinaa opened 6 years ago

sinaa commented 6 years ago

Monaco is a great editor for providing programmatic interfaces for users to an application.

One feature that'd significantly help with the user experience is to make specific lines read-only, such that user can enter their code within a specific block (e.g., between a function block).

Would it be possible to include this as a core features/API of the editor?

nchandarr commented 3 months ago

@virus2016 nope... but if you use monaco editor version 0.4.X ... you can do that...

can i use in 0.34.1 ?

muzichen commented 2 months ago

This is the only thing stopping me to move from Ace Editor to Monaco Editor. This will be really useful.

Does ace editor provide this feature?