WordPress.org

Forums

Crayon Syntax Highlighter
[resolved] can't copy code when long one-liner (6 posts)

  1. chovy
    Member
    Posted 2 years ago #

    I have a long one-liner code (shell) that I cannot copy, because when I hover over it, a scrollbar shows up hiding the text:

    http://chovy.dyndns.org/crayon.png

    I suggest you modify the hover state to not overlay ANY of the code.

    Heres it the line:

    rsync -avz --progress --delete /home/username/data offsitehost:backups/server1/data

    http://wordpress.org/extend/plugins/crayon-syntax-highlighter/

  2. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    I'll need to figure out how to restrict it in all other cases since expanding and such may interfere. I'll take a look.

  3. chovy
    Member
    Posted 2 years ago #

    I suggest you just add a placeholder for it atop all the code blocks and not ever interfere, overlay the code itself.

  4. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Are you using the latest version? I've fixed it not to do that in the last few weeks. For me the scrollbar in both chrome and firefox appears below a single line of code. Please verify with 2.0.2.

  5. chovy
    Member
    Posted 2 years ago #

    I noticed it is fixed with 1 liners, but with 3 lines it still blocks the text, so you can't copy/paste it.

    Why not just always insert the extra line. The problem would go away and not cover any of the code.

    http://chovy.dyndns.org/foo1.png

  6. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    If you click the plain code a second time the toolbar gets out of the way.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Crayon Syntax Highlighter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags