editing xslt files: tabs
This is an open discussion with 4 replies, filed under XSLT.
Search
I set up TextMate to use "soft tabs", which means it will behave like having tabs, but save spaces instead. This solution works rather well for me!
You can disable the code that replaces tabs with spaces:
In /symphony/lib/toolkit/class.general.php
change:
public static function tabsToSpaces($string, $spaces=4){ return str_replace("\t", str_pad(NULL, $spaces), $string); }
To:
public static function tabsToSpaces($string, $spaces=4){ return $string; }
Changing of tabs to spaces had been removed from the latest build awhile ago. Allen kept complaining. ;) http://github.com/symphony/symphony-2/tree/master
Allen kept complaining.
Allen's a good man.
Create an account or sign in to comment.
I'm switching between using Symphony's internal editor and Textmate. The result is code with no structure in intendention at all. Any tips on retaining code structure in the code?