Php keyword tab expansion only works from html


#1

This used to work fine on older version of atom but started happening recently.

I’m not entirely sure where to report the bug – is this a core issue?

When editing a php file, you can type the word php, then tab to expand to open/close tags.

It works when you’re inside an html block, so:

<div>
	php
</div>

will successfully expand to:

<div>
	<?php  ?>
</div>

if you press tab after the php keyword.

However, if you’re already inside a php block, eg:

public function imafunction()
{
	php
} 

and press tab, it awkwardly results in this:

public function imafunction()
{
	php  ?>
}

but it used to result in the much more useful

public function imafunction()
{
	?><?php
}

With the cursor placed correctly between > and <

How do I report this issue?


#2

You can report it on the language-php package.


#3

Ah, yeah, duh.

Side question, is there a way to manually generate the same report as when an exception occurs to include in such a bug report?


#4

You can use my bug-report package. It isn’t identical, but it is similar. (I need to get around to updating it.)


#5

Thanks :thumbsup:
A list of the installed packages would be great in the bug-report output (that’s what I was after)


#6

Bug report for reference.