• Resolved Sany

    (@sannny)


    Hello,

    indention ist not working for me, e.g. if I paste

    <ul>
    <li>1</li>
    <li>2</li>
    </ul>

    I want to get

    <ul>
      <li>1</li>
      <li>2</li>
    </ul>

    but I get

    <ul>
    <li>1</li>
    <li>2</li>
    </ul>

    I already tried different languages like HTML, CSS, C# etc, but in no case it is working. I’ve read that there were some problems with indention, are they solved meanwhile? Or maybe I am doing something wrong. In my settings I have 2 spaces for indention. The space should be pasted automatically, shouldn’t they? Or do I need to add them manually?

    Thanks for any help you can offer.
    saNNNy

    https://ww.wp.xz.cn/plugins/enlighter/

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

    (@andi-dittrich)

    Dear saNNNy,

    did you use the VisualEditor mode with “Enlighter Code Insert” ?

    Do you have any other syntax highlighting or page-optimization plugins enabled on your page ? if so, please disable these plugins.

    generally indentation works as expected – there are no known/open issue

    Thread Starter Sany

    (@sannny)

    Hello Andi,

    sorry for the late answer, I was on holiday.

    Yes, I use the VisualEditor mode.

    I disabled all plugins and I also changed the theme but it still doesn’t work 🙁

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    Dear saNNNy,

    is the indentation visible in the visual editor after inserting the content ? is it only lost on the frontend ?

    how do your exactly insert the content into the visual editor ?

    example:
    1. open the post/page
    2. click into the editor and goto the section you want to insert the content
    3. click on the toolbar button “enlighhter code insert”
    4. the Enlighter dialog appears
    5. Insert the content into the dialogs text area
    6. click insert
    7. indentation is gone?

    Thread Starter Sany

    (@sannny)

    The indention is neither in the backend nor in the frontend.

    I insert the code in the same order as you described.
    But I insert it without indention, because the code should be indented by the plugin, right? I just use HTML as language and insert e.g.

    <ul>
    <li>1</li>
    <li>2</li>
    </ul>

    Or do I need to paste it with indention?

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    I’m sorry, but the plugin has currently no auto-indentation feature – you have to paste it with the indentation

    Thread Starter Sany

    (@sannny)

    Ah ok, so I missunderstood.
    Thanks for your efforts.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Indention not working’ is closed to new replies.