Skip to content

Instantly share code, notes, and snippets.

@StanAngeloff
Created June 4, 2011 13:00
Show Gist options
  • Save StanAngeloff/1007882 to your computer and use it in GitHub Desktop.
Save StanAngeloff/1007882 to your computer and use it in GitHub Desktop.
<?php
return array(
'item1' => 'value1',
'item1000' => 'value1000',
'item2'<|>
);
// <|> is the caret position
// TAB is pressed at caret position, wanted behaviour below
<?php
return array(
'item1' => 'value1',
'item1000' => 'value1000',
'item2' <|>
);
// <|> is the caret position
// 4 spaces were inserted; behaviour is: move caret while column above isn't a SPACE;
// once SPACE found, move caret until column above is a SPACE;
// once NON-SPACE character reached on column above, stop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment