Support » Plugin: Enlighter - Customizable Syntax Highlighter » 4 spaces when copy line of code (not raw)

  • worldsdream


    I saw there was a topic about the same question I am having. Maybe something changed with the latest updates. That is why I am asking my question again.

    Raw code copy works good but I have it DISABLED. Normal mode copy, it gives us 4 spaces. I tried everything but I can’t seem to fix it. Is there custom css for it to have NO spaces when we copy it from the block (not raw) or will we see this feature in the new version?

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Andi Dittrich


    Just selecting the text and pressing ctrl+c has a lot of side effects that makes this method very unreliable – it should not be used.

    but generally EnlighterJS v2 (as well as v3) includes the indent option which doesn’t alter any tabs (Enlighter -> Appearance -> Global Settings -> Code-Indent) – this will work as expected

    btw. EnlighterJS v3 includes a “copy” button which copies the current active code pane into the clipboard.

Viewing 1 replies (of 1 total)
  • The topic ‘4 spaces when copy line of code (not raw)’ is closed to new replies.