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

Syntax Highlighting #11

Open
iifste2020 opened this issue Nov 20, 2021 · 6 comments
Open

Syntax Highlighting #11

iifste2020 opened this issue Nov 20, 2021 · 6 comments

Comments

@iifste2020
Copy link

On lower end machines the syntax highlighting really slows down the online editor on large projects.

@robindouglasjohnson
Copy link
Owner

Thanks. For now, I've added an option to disable syntax highlighting, which is in the new "Options" menu with dark/light theme.

@iifste2020
Copy link
Author

Thanks. However line numbers no longer sync when highlighting is off.

@robindouglasjohnson
Copy link
Owner

Ah, that's interesting. The line numbers should work now -- it's a less efficient fix, but it's not doing all the regex matching and replacing so hopefully it will be ok - let me know if you can!
Otherwise I could introduce an ultra-efficient mode using just a plain textarea, with no syntax highlighting OR line numbers.

@iifste2020
Copy link
Author

Thanks. Unfortunately this less efficient fix is still very slow on low end machines. I'm using an old netbook with 1gb ram and (for example) editing The Party Line is difficult. Obviously using old equipment will cause issues. Your alternative may be helpful here. Thanks again.

@robindouglasjohnson
Copy link
Owner

robindouglasjohnson commented Nov 24, 2021

OK. For now I've disabled line numbers too when syntax highlighting is off, giving you just a plain textarea, which should be usable if basic.
Looks like I need to incorporate CodeMirror or something similar to sort this.

@iifste2020
Copy link
Author

Thanks, this works great now.

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