![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Hello! I am teaching programming, and display code snippets with line numbers for easy reference. If possible, I would like to make these line numbers non-sselectable, so that if students copy my code from the browser, they do not need to manually strip the line numbers to make the code work. Does css have a style to this effect? |
#12
| |||
| |||
|
|
But how about this: I assume your students have browsers that can save HTML files as plain text. Then if you use an ordered list to generate the line numbers, they can just save as text and the numbers won't appear. |
#13
| |||
| |||
|
|
I am teaching programming, and display code snippets with line numbers for easy reference. |
#14
| |||
| |||
|
| Christopher P. Winter wrote: But how about this: I assume your students have browsers that can save HTML files as plain text. Then if you use an ordered list to generate the line numbers, they can just save as text and the numbers won't appear. Are you sure? Seems to me that when you save as text, many browsers attempt to make the text resemble what was rendered. |
![]() |
| Thread Tools | |
| Display Modes | |
| |