Sublime Forum

Indentation Fails

#1

Seems like there is some hard limit of number of rows in an array… for example

	$fields] = array(
		array('label' => 'Main Body Background Color',		'desc' => '','type' => 'Colorpicker'	,'std' => '','section' => 'brand','class' => ''),
		array('label' => 'Main Sub Navigation Text Color',	'desc' => '','type' => 'Colorpicker'	,'std' => '','section' => 'brand','class' => ''),
		array('label' => 'Main Sub Body Background Color',	'desc' => '','type' => 'Colorpicker'	,'std' => '','section' => 'brand','class' => ''),
		array('label' => 'Widget Background',				'desc' => '','type' => 'Colorpicker'	,'std' => '','section' => 'brand','class' => ''),
		
		);

	$fields] = array(
		array('label' => 'Left Slider Navigation Image','desc' => '','std' => '','type' => 'upload','section' => 'homepage','class' => ''),
		array('label' => 'Center Slider Navigation Image','desc' => '','std' => '','type' => 'upload','section' => 'homepage','class' => ''),
		array('label' => 'Right Slider Navigation Image','desc' => '','std' => '','type' => 'upload','section' => 'homepage','class' => ''),
		);

looks fine

but when more lines are added to 1st array the indentation starts to fail

	$fields] = array(
		array('label' => 'Main Body Background Color',		'desc' => '','type' => 'Colorpicker'	,'std' => '','section' => 'brand','class' => ''),
		array('label' => 'Main Sub Navigation Text Color',	'desc' => '','type' => 'Colorpicker'	,'std' => '','section' => 'brand','class' => ''),
		array('label' => 'Main Sub Body Background Color',	'desc' => '','type' => 'Colorpicker'	,'std' => '','section' => 'brand','class' => ''),
		array('label' => 'Widget Background',				'desc' => '','type' => 'Colorpicker'	,'std' => '','section' => 'brand','class' => ''),
		array('label' => 'Top Sub Menu - Text Color',		'desc' => '','type' => 'Colorpicker'	,'std' => '','section' => 'brand','class' => ''),
		array('label' => 'Top Sub Menu - Background Color',	'desc' => '','type' => 'Colorpicker'	,'std' => '','section' => 'brand','class' => ''),
		array('label' => 'Top Sub Menu - Border Color',		'desc' => '','type' => 'Colorpicker'	,'std' => '','section' => 'brand','class' => ''),
		array('label' => 'Logo',							'desc' => '','type' => 'upload'			,'std' => '','section' => 'brand','class' => ''),
		array('label' => 'Button Facebook',					'desc' => '','type' => 'upload'			,'std' => '','section' => 'brand','class' => ''),
		array('label' => 'Facebook URL',					'desc' => '','type' => 'text'			,'std' => '','section' => 'brand','class' => ''),
		array('label' => 'Button Twitter',					'desc' => '','type' => 'upload'			,'std' => '','section' => 'brand','class' => ''),
		array('label' => 'Twitter URL',						'desc' => '','type' => 'text'			,'std' => '','section' => 'brand','class' => ''),
		array('label' => 'Main Navigation Text Color',		'desc' => '','type' => 'Colorpicker'	,'std' => '','section' => 'brand','class' => ''),
		);

$fields] = array(
	array('label' => 'Left Slider Navigation Image','desc' => '','std' => '','type' => 'upload','section' => 'homepage','class' => ''),
	array('label' => 'Center Slider Navigation Image','desc' => '','std' => '','type' => 'upload','section' => 'homepage','class' => ''),
	array('label' => 'Right Slider Navigation Image','desc' => '','std' => '','type' => 'upload','section' => 'homepage','class' => ''),
	);

is there any development taking place now? seem just like textmate development now has stalled

0 Likes

#2

I don’t really get it, can you provide screenshots?
Do you have wrapping enabled?

0 Likes

#3

If you look at the 2nd array that’s seperated… it’s not indented to the same indentation as the 1st array… the entire array block is one to the left…

0 Likes