prko
March 26, 2024, 4:49am
1
I think programming SC cannot be so agile. However, it would be good if this or an equivalent AI tool could help with SC development.
The following PR is done with the help of AI (I do not know Javascript, but I could achieve this functionality. I could also learn some of the Javascript language.):
supercollider:develop
← prko:topic/add_line_number_to_code_mirror_in_help_documents
opened 07:11PM - 30 Jan 24 UTC
## Purpose and Motivation
Reading long code examples in help documents is not… as straightforward as in SC-IDE's code editor because there are no line numbers on the left side of the code mirror in help documents.
This PR adds line numbers to the code mirror of the help document.
https://scsynth.org/t/implementing-line-numbers-on-the-left-side-of-the-code-editor-in-schelp-files/5986
Here are some examples:
<img width="762" alt="Screenshot 2024-01-31 at 3 47 12" src="https://github.com/supercollider/supercollider/assets/416281/5e4534d7-e762-45da-a8d0-6daf4e3e40cd">
<img width="755" alt="Screenshot 2024-01-31 at 3 46 45" src="https://github.com/supercollider/supercollider/assets/416281/704cb36d-cdaa-4c09-ae37-8a816d952b9f">
<img width="757" alt="Screenshot 2024-01-31 at 3 46 19" src="https://github.com/supercollider/supercollider/assets/416281/27a4cf19-c165-4693-8706-dfb7d3c98f2b">
<img width="968" alt="Screenshot 2024-01-31 at 18 09 13" src="https://github.com/supercollider/supercollider/assets/416281/9b91acfa-0980-44e0-a7fe-1aba416a13c0">
## Types of changes
- New feature
## To-do list
- [x] Code is tested
- [x] All tests are passing
- [x] This PR is ready for review