MyBB Community Forums

Full Version: Change template code indentation?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've started doing some customization via template files.
The indentation used seems excessive -- 8 spaces! -- and my home 'puter has only a small screen, meaning it's awkward to see much code without lots of scrolling or manual editing.
Can i change globally the indent to something reasonable, like 2 or 3 spaces?

Thanks.
By default it uses tabs, not spaces, CodePress (the syntax highlighter) might be turning them into spaces in your browser. There's no 'setting' to change how much it indents, it's standard for a tab to be used to indent, and that equates to 8 spaces.
Thanks. I'm not sure that the tab standard is 8 spaces -- i just discovered that Edit Template in Chrome Tab is 4 spaces (but there's no syntax coloring). In FF and IE it is 8 spaces (with coloring). I think i'll just copy to/from SynWrite or TextPad!