Hi there, i’m new to Sublime text.
The following code auto-indentation result is:
<?php
foreach($tab as $key => $value)
if(!array_key_exists($key,$ignore))
{
$value=1;
}
$dummy=1;
?>
As you can see, the 2 last lines are not indented correctly, this is due to the presence of the foreach without brackets.
If I write this code, then the auto indentation works correctly:
<?php
foreach($_POST as $key => $value)
{
if(!array_key_exists($key,$ignore))
{
$value=1;
}
}
$dummy=1;
?>
Not taking account implicits brackets seems a bug to me.
Regards.