Results 1 to 7 of 7

Thread: Copy code problem.

  1. #1

    Thread Starter
    Hyperactive Member Libero's Avatar
    Join Date
    Jun 2000
    Location
    Swedish viking
    Posts
    460

    Unhappy Copy code problem.

    Hiya! I got some strange problem when i copy code from codes within the VBCode tags here at this site.

    I copy it by slecting the code, and when im pasting it, it becomes all in one row like this:

    Code:
    If folders.Length <> 0 Then                Dim childNode As TreeNode = Nothing                For Each folder In folders                    childNode = New TreeNode(folder)                    parentNode.Nodes.Add(childNode)                    PopulateTreeView(folder, childNode)                Next            End If
    So every time i paste my code i have to make a return on every line. And thats a bit tough when there are tons of rows.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Copy code problem.

    Assuming that the code was posted in tags other than plain "Code" tags (eg: in "VB Code" or similar), it is a known issue, and will hopefully be fixed in the near future.

    For now, there are various work-arounds, such as the ones described in this thread: http://www.vbforums.com/showthread.php?t=484830

  3. #3

    Thread Starter
    Hyperactive Member Libero's Avatar
    Join Date
    Jun 2000
    Location
    Swedish viking
    Posts
    460

    Re: Copy code problem.

    Wow thx for that "race" answer. the "quote" hack was useful. Thx m8!

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Copy code problem.

    Quote Originally Posted by si_the_geek
    Assuming that the code was posted in tags other than plain "Code" tags (eg: in "VB Code" or similar), it is a known issue, and will hopefully be fixed in the near future....
    Unfortunately I don't think that there is any chance that it fill ever be "fixed". The reason being that the vBulletin code hack that used to be used to display VB-like highlighting etc, was difficult to maintain and so was dropped when [highlight='vb'] tags became available.

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Copy code problem.

    Actually it is a work in progress - penagate has already made some corrections to the current highlighter, but has not got it fully working yet (I think it is this particular issue he hasn't solved yet).

    Admittedly it might not actually happen (hence the "hopefully"), depending on the complexity and his time constraints etc.

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Copy code problem.

    I did actually solve this issue. I just lost the code in a system crash and have been far too lazy to re-do it yet.

  7. #7

    Thread Starter
    Hyperactive Member Libero's Avatar
    Join Date
    Jun 2000
    Location
    Swedish viking
    Posts
    460

    Re: Copy code problem.

    Welcome to my club

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width