• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Change template editor tab indent?

Chris D

XenForo developer
Staff member

Most browsers now have support for the CSS property tab-size.

Unfortunately however you would likely have to use a browser extension to affect this in the Admin CP as there is no concept of editable styles there.

You could enable debug mode and modify the CSS directly but this will be often overwritten such as when master data is rebuilt or when you upgrade XF.

There are browser extensions though that can allow you to automatically inject custom CSS to certain web pages so this would be easy enough to do:

    tab-size: 4;
Something like that should work.


Active member
I ended up adding this to the template_edit.css admin template in the debug mode Development panel:

    -moz-tab-size: 3;
      -o-tab-size: 3;
         tab-size: 3;