Line-Numbers inside code-blocks

~ Б0ЯИ Τ0 С0δЭ ~
7Jun2009,08:04   #1
SaswatPadhi's Avatar
Hi shabbir,

Can we have line numbers beside the code, inside the code-blocks ? It would be really useful while relating the compiler errors to the code. And the system should be such that, the line-numbers don't get copied, when we copy the code.

I don't know if this is possible, but please do try.

Thanx.

Saswat
Go4Expert Founder
7Jun2009,08:38   #2
shabbir's Avatar
Its possible and I had it as well for sometime but the actual problem occurs when people try to copy the code and which means the line numbers get copied as well.
~ Б0ЯИ Τ0 С0δЭ ~
7Jun2009,09:43   #3
SaswatPadhi's Avatar
Can we have something like this :

<------------>
(Concept Drawing)

Clicking on ON and OFF switches line nums ON and OFF
Go4Expert Founder
7Jun2009,19:21   #4
shabbir's Avatar
It would be a daunting Javascript work to insert something like that in the middle of all the code highlighling.
~ Б0ЯИ Τ0 С0δЭ ~
7Jun2009,20:47   #5
SaswatPadhi's Avatar
After a lot of googling, I found this : http://codepress.sourceforge.net/index.php
Go4Expert Founder
8Jun2009,07:33   #6
shabbir's Avatar
We are using GeSHI for Syntax highlighting.