Sublime Forum

Php + heredoc + reindent

#1

Hi everyone and greetings from a sunny but still cold Finland!

I just started using sublime and i am quite loving the fast and slick experience i get from it! I have a question about heredoc and reindenting. Tried googling it, but my searches turned up empty.
Anyway, say i have this code:

<?php
if(1 == 1){
	$string = <<<HTML
	 Foo Bar
HTML;
}
?>

if i then reindent this the code ends up looking like this, breaking the heredoc system:

<?php
if(1 == 1){
	$string = <<<HTML
	Foo Bar
	HTML;
}
?>

Am i doing something wrong or can i tweak some settings somewhere?

Best regards,
Petter “atlaz” Lillhonga

0 Likes

#2

I wonder if someone with ST3 could test this out incase it works with it?

0 Likes

#3

Oh, and the command im using is:

{ "keys": "alt+shift+f"], "command": "reindent" , "args": {"single_line": false}},
0 Likes

#4

The same problem exists on ST3.

0 Likes

#5

Anyone? :Y

0 Likes