Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I set the start line for my code editor using Blazor Monaco? #91

Closed
BelloMary1 opened this issue Jun 21, 2023 · 1 comment
Closed

Comments

@BelloMary1
Copy link

By default the start line of the code within the editor is 1, let's say I want to set it to start from a different value, such as 37. How do I configure the start line?

@serdarciplak
Copy link
Owner

The JS editor does not support doing this with a construction option. But I think you can subscribe to the OnDidInit event of the editor instance, and use the SetPosition method there to set the cursor position on init.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants