P Parsnip Active member Mar 19, 2016 #1 Does anybody know if it's possible to change the tab indent width in the template editor? Thanks.
Arty Well-known member Mar 20, 2016 #2 No, its simple textarea element, not a proper editor. I suggest to edit templates via WebDav instead. Then you can use your favorite editor to edit files. See https://xenforo.com/community/resources/edit-xenforo-templates-using-editor.1433/ Upvote 0 Downvote
No, its simple textarea element, not a proper editor. I suggest to edit templates via WebDav instead. Then you can use your favorite editor to edit files. See https://xenforo.com/community/resources/edit-xenforo-templates-using-editor.1433/
Chris D XenForo developer Staff member Mar 20, 2016 #3 Yes. 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: Code: textarea.textCtrl.code { tab-size: 4; } Something like that should work. Upvote 0 Downvote
Yes. 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: Code: textarea.textCtrl.code { tab-size: 4; } Something like that should work.
P Parsnip Active member May 15, 2016 #4 I ended up adding this to the template_edit.css admin template in the debug mode Development panel: Code: textarea.textCtrl.code { -moz-tab-size: 3; -o-tab-size: 3; tab-size: 3; } Upvote 0 Downvote
I ended up adding this to the template_edit.css admin template in the debug mode Development panel: Code: textarea.textCtrl.code { -moz-tab-size: 3; -o-tab-size: 3; tab-size: 3; }
P Parsnip Active member May 26, 2017 #5 If you'd like this to also apply in Template Modifications, then add the same code to base_template_modification.css Upvote 0 Downvote
If you'd like this to also apply in Template Modifications, then add the same code to base_template_modification.css