Support » Plugin: Code Snippets » A Problem with the Cursor Color and the Fix that Worked for Me

  • Resolved rwnfrnnd

    (@rwnfrnnd)


    First, it’s a very useful plugin. Thank you for the author.

    One frustrating problem I had with it was that the mouse cursor in the editor being shown in black (or darker color) that’s not clear with the background.

    In the code I saw it’s using some styling theme named “rubyblue”. I searched on it and found a CSS rule that solved the problem;

    .cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white !important; }

    You have to enter the CSS code using a back-end customization plugin which allows to add custom CSS rules. I used the Admin Tweaks plugin.

    https://wordpress.org/plugins/code-snippets/

    PS: Here is the page that I found the CSS code – https://github.com/LightTable/LightTable/blob/master/deploy/core/css/themes/rubyblue.css

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Thanks for noticing this issue and providing a fix! I was going to patch this in the plugin, but after updating to use the latest version of CodeMirror (the library that the code editor uses for syntax highlighting, themes, etc), it seems to be working correctly.

    Once version 2.6.0 has been released, could you check this again and see if the cursor is displaying correctly. Thank you!

    @shea Updated. But I still need the CSS fix.

    Maybe it depends on the WP + theme setup the user has. Thank you anyway for being committed to improve the plugin.

    Plugin Author Shea Bunge

    (@bungeshea)

    I’ll include the CSS fix in the next plugin version; hopefully that will solve the issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘A Problem with the Cursor Color and the Fix that Worked for Me’ is closed to new replies.