Skip to content

Conversation

@ToniSkulj
Copy link
Member

@ToniSkulj ToniSkulj commented Jan 23, 2026

Fixes #6441

Changes

Summary

This PR changes the current behavior so that users receive immediate feedback while typing if a program exceeds the allowed length, instead of only getting an error after sending it to the server.

Current result after running program:

image

Bug in current approach

Currently you are allowed to type 101 lines whilst the error returns that only 100 are allowed.

image

Max line per level

It's now possible to set the max lines per level or range.

How to test

From level 1 to 9: It should not be possible to go over 100 lines in the code editor when typing.
From level 9 and above: It should not be possible to go over 200 lines in the code editor when typing.

Whenever the user tries to add a new line character the user should get an informative warning message:

image

@github-project-automation github-project-automation bot moved this to Review for relevance in Newsletter content Jan 23, 2026
@ToniSkulj ToniSkulj changed the title Aadd a limit of 100 lines to the code editor Add a limit of 100 lines to the code editor Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress
Status: Review for relevance

Development

Successfully merging this pull request may close these issues.

💻Add a limit of 100 lines to the code editor

2 participants