sourcecode blocks copy poorly

  • Unknown's avatar

    When I use [sourcecode] blocks on my wordpress.com blog they look reasonable, but when users try to copy the code (which is, after all, a big part of the purpose of putting code blocks on a blog entry) the text is mangled.

    Tricks With the Floating-Point Format

    The paste operation, whether to Visual Studio or to notepad, inserts five blank lines after each line of code. Double spacing would be bad enough, but sexta-spacing?

    This is annoying that it makes me want to not use the [sourcecode] tag. Is there any way of avoiding this problem?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    I’m sorry that’s happening to you. If this posting source code section is not helpful you will have to contact Staff for assistance.

  • Unknown's avatar

    The HTML in these cases doesn’t contain anything hidden from view, and what you’re describing isn’t happening when I copypaste from your examples or the relevant Support doc into TextEdit (on a Mac). Perhaps you need to adjust some setting or preference in the applications you’re using.

  • The topic ‘sourcecode blocks copy poorly’ is closed to new replies.