Sublime Forum

PHP autocomplete not working

#1

Hi,

I have a problem getting PHP autocomplete working on files where php is not closed with ?>

If I begin writing PHP at the last line, the autocomplete does not work. If I put in a ?> at the end of file
autocomplete works. It is only at the end of file, if I am writing anywhere else in the file, autocomplete
works fine.




0 Likes

#2

Same problem. Didn’t know about the not being in the last line though. Did u ever find out how to fix it?

0 Likes

#3

I think I just got this working by using github.com/Kronuz/SublimeCodeIntel, I’m not sure how well it works, and it took quite some time to index.

Edit:
Sorry SublimeCodeIntel doesn’t work well at all! I guess the only thing to do is to make sure there is always something at the end of the file ur editing :-s

0 Likes