Search

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?

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details