WordPress.org

Ready to get started?Download WordPress

Forums

Enlighter - Customizable Syntax Highlighter
[resolved] Copy & paste removes indentation and blank lines (3 posts)

  1. cdonts
    Member
    Posted 5 months ago #

    Hello again. I really like this plug in that's why I'm always here trying to report errors so you can improve it :-)

    With both C and Python code, when I copy from my blog to my text editor (notepad) or my IDE (geany) then the code is pasted without the original indentantion and blank lines.

    Thanks!

    https://wordpress.org/plugins/enlighter/

  2. Andi Dittrich
    Member
    Plugin Author

    Posted 5 months ago #

    Dear cdonts,
    thanks for your feedback.
    to solve such issues, a "copy button" feature was requested on GitHub. it affects all languages and is caused by the fact, that the posted sourcecode is completely modified by EnlighterJS to provide the highlighting. i will try to add the "copy button/raw code" feature to the next major release (v2.0)

    best regards, Andi

  3. cdonts
    Member
    Posted 5 months ago #

    Thanks for your quick answer! Also still waiting this feature.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.