Dear developers,
According to the following webpage:
I made a “custom.css” file in the “HelpSource” folder inside SuperCollider’s resource folder as follows:
code, pre {
white-space: pre-wrap;
word-break: break-word;
text-align: left;
counter-reset: line 1;}
pre>span::before {
content: '1';
display: inline-block;
padding: 0 .5em;
margin-right: .5em;
color: #888;
}
pre div {
line-height: 1.5rem;
counter-increment: line 1;
}
pre div::before {
content: counter(line);
display: inline-block;
padding: 0 .5em;
margin-right: .5em;
color: #888;
}
pre {
border-left: 2px solid #e0e0e0;
padding-left: 0.5em; ;
}
However, the line numbers are not counted, and number 1 repeats as follows:
One more problem is that the line numbers seem to be included when selecting text across lines even though they are excluded when copying and pasting.
How could I resolve these two problems?
And… would it be not helpful if this feature were implemented in the SC document files’ code editor? Sorry for always suggesting something that I could not accomplish by myself.