![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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? |
#3
| |||
| |||
|
|
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? |
#4
| |||
| |||
|
|
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? |
#5
| |||
| |||
|
|
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? |
#6
| |||
| |||
|
|
apologies for posting code, I don't currently have access to my webspace |
#7
| |||
| |||
|
|
Spartanicus <invalid (AT) invalid (DOT) invalid> wrote: apologies for posting code, I don't currently have access to my webspace URL may not work: http://homepage.ntlworld.ie/spartanicus/generated_line_numbering.htm |
#8
| |||
| |||
|
|
apologies for posting code, I don't currently have access to my webspace URL may not work: http://homepage.ntlworld.ie/spartanicus/generated_line_numbering.htm In Firefox, all lines are numbered 1. In Opera, lines are numbered correctly, but line numbers are included in selection. |
#9
| |||
| |||
|
|
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. |
#10
| |||
| |||
|
|
michaelp schrieb: 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? No. |
|
And even if it had - what about browsers like lynx which ignore CSS? |
![]() |
| Thread Tools | |
| Display Modes | |
| |