none
CODE BLOCK Line Number BUG RRS feed

  • Question

  • Applied Line#'s in code block (at least in VB) render the code useless since it can't be copied anymore without having the line numbers in the code as well!

    Try below sample (copy and paste into your CODE EDITOR):

    1 Public Class Form1  
    2  
    3     Private Sub Form1_Load(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles MyBase.Load  
    4         MessageBox.Show("Hello World""Hello World", MessageBoxButtons.OK, MessageBoxIcon.Information)  
    5     End Sub 
    6 End Class 
    • Edited by Earl Tut Wednesday, February 4, 2009 9:06 PM Added sample
    Wednesday, February 4, 2009 9:03 PM

Answers

  • There's a fair amount of "doh!" there.  Line numbers are absolutely horrible.  Be sure to not check the Display Line Numbers checkbox in the popup when you post a snippet.  It took me a while, but hold down the Alt key while selecting text to select a column and delete those pesky numbers after pasting the snippet in Visual Studio.

    Putting it in perspective, this thread is one of my favorite ones.  I laughed uncontrollably at odd times for at least 3 days.  Shoot, again.

    Hans Passant.
    Thursday, February 5, 2009 1:55 AM

All replies

  • There's a fair amount of "doh!" there.  Line numbers are absolutely horrible.  Be sure to not check the Display Line Numbers checkbox in the popup when you post a snippet.  It took me a while, but hold down the Alt key while selecting text to select a column and delete those pesky numbers after pasting the snippet in Visual Studio.

    Putting it in perspective, this thread is one of my favorite ones.  I laughed uncontrollably at odd times for at least 3 days.  Shoot, again.

    Hans Passant.
    Thursday, February 5, 2009 1:55 AM
  • Bahahahahaha, I can't stop.  Shoot me.
    Hans Passant.
    Thursday, February 5, 2009 2:02 AM