How do you make a TAB indentation (8 spaces)?

I write long post so I need to be able to add a tab.

I tried pressing 4 spaces but it just brings up a code box.

      Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore
eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est laborum

Just hit a return (or two in the old editor) to start a new paragraph. If you want indented paragraphs, you can do that with (edit) CSS!

One option would be to use HTML non-breaking spaces ( ). For example, here’s what 8 of them at the beginning of a paragraph looks like:

        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

In the markdown editor that would look like this:

        Lorem ipsum dolor sit amet…

4 Likes

Yeah either  s or any space-like character that doesn’t get trimmed. Then if you intend to use those indentations regularly, you can create a userscript that will insert them with a keyboard shortcut.
I have one that insert or wrap my selection with <kbd></kbd> on meta and it’s quite convenient :chefs_kiss:

On markdown, three spaces get trimmed and four creates a code block, so there are not many options to achieve what your want. Either hacky ways as described, of a custom component/plugin if you have a budget of know how to code that.

2 Likes

How would I create a userscript to create that standard 8 space tab?

Whats CAS ? Do you mean CSS?

1 Like

Something like Tampermonkey, I think. A Theme Component might be able to do the trick as well, perhaps even adding buttons to the composer toolbar to add those spaces.

1 Like

Yes, something like this would make all paragraphs be indented 4em.

.cooked p {
    text-indent: 4em;
}

That would affect all paragraphs in cooked text. It looks like there’s a data-user-id that you could use to target just posts written by you. (Of course this assumes you’re an admin)

1 Like