last day (14 days later) » 

1:13 AM
hi!
sorry just saw your comment about the chat
 
no problems
So, let me see if I can get all this straight
 
thank you for helping! yeah let me know what you need
 
You can open up a .ctp file, select the PHP syntax, or choose "Open all with current extension as..." and choose PHP, right?
 
yes
 
OK, but when you go to an HTML section, you can't get tag completions working? Or is the HTML embedded within the PHP?
 
1:16 AM
that's correct, the HTML completions aren't working
the html isn't embedded in the php
I don't know if it matters, but javascript completion does work
 
what version of ST3 are you using?
 
build 3065
downloaded it yesterday
 
That's good, me too.
That's strange, b/c I'm working in a CTP file now that looks like this:
    <!DOCTYPE html>

    <?php
        $FooBar->baz_quux()

    ?>


    <html>
    <head>
        <title>Stuff</title>
    </head>
    <body>
    <article>
        <aside>
            <a href="" title=""></a>
        </aside>
    </article>
    </body>
    </html>
 
let me give this a try... is completion working fine for you?
 
yeah, the <article></article> and <aside></aside> autocompleted when I typed article and hit Tab. I also typed a, hit Tab, and chose (for me) the second autocomplete option, and it filled out the href="" title="" stuff automatically
 
1:24 AM
I think I found the reason
 
I do have this line in my user preferences:

"auto_complete_triggers": [{"characters": "<", "selector": "text.html"}]
yes?
 
so if I create a ctp file with your exact code it all works
but....
if I remove the <html> and <body> tags THEN it doesn't
and you must be thinking why would I do that?!?!
 
hmm
 
or maybe not lol
I don't know if you've worked with cakephp, but those ctp files are loaded into "layout" files
which contain the html declaration, html tag, body tag, etc
 
no, I haven't - I'm a Python guy :), but I think I understand...
so they wouldn't have <html> or <body> tags in them
 
1:29 AM
yeah, I just tried further and it's just the html tag the culprit
you can remove the body tag and still works
but the second you remove the html tag the autocompletion is gone
 
weird...I'm not seeing that...
 
so I guess they coded sublime to only do html completiion if <html> is present, not by extension
ah no?
what do you see?
I just retested it and in m case that's exactly whats going on...
html tag => completion OK
no html tag => no compeltion
 
I removed <html></html>, and just autocompleted the pre tag by typing pre and hitting Tab...
 
ah... I think we're talking about different kinds of autocompletion
 
Have you ever tried or heard of Emmet?
OK, what are you doing?
 
1:34 AM
this is what I do
I type <a
and then the autocompeltion list opens
same with <d
and even more
same with attributes
so if I type <div s
it shows me to autocomplete "style"
or if I type <a h
it shows me all the <a> attributs starting by "h"
and even more
 
OK, I can do that now with html, /html there, let's try removing them...
 
if I type <a and then press ctrl+space I see a list of all the possible attributes
if I remove the html tag all that is gone
is it the same for you?
 
no, stuff is still working the same. Argh!
 
really? mmmm...
 
Question for you
 
1:39 AM
shoot
 
When you go into the syntax menu in the lower right of the status bar, and choose PHP, does HTML show up instead, but when you click on the syntax area, PHP is checked?
 
well it shows there PHP all the time, even if I click and select HTML from the list of syntaxes it still shows PHP...
 
hmm. give me a sec, and I'm going to fire up a clean install of ST3. BTW, what OS are you on?
 
ok
windows 8.1
 
I'm on Linux now, I wonder if that's making a difference?
 
1:44 AM
so if I change the syntax language to anything but HTML, it changes from PHP to whatever I chose. If I chose HTML then it stays on whatever I have, never changes to HTML
who knows... maybe
 
I have Win7 installed in a VM, I wonder if it's worth switching over...
 
well I don't know... I've alredy taken a lot of your time
and this doesn't seem to have a quick fix
maybe something got messed up in my installation
I can try installing again
 
at any rate, I just tried with a fresh copy of ST3, and when I choose PHP, it still displays HTML. Bother.
 
lol this is getting weird
just the opposite that happens to me
 
OK, I'm going to try Win7. My master OS is OS X, but firefox is running very slow, which is why I was in Linux. I'll try to keep up the witty commentary here, though :)
 
1:52 AM
ok let me know if you find out anything! I might need to step out in a bit but I would reply later to anything
 
ok, that's fine. When do you think you'll be back?
 
I don't know, but I wasn't planning on working much more today...
if you find anything you can let me know also with a comment on the question
I really appreciate your help! Don't worry too much about this issue, maybe with a reinstall I'll fix it, I've taken a lot of your time!
 
no problem, I'll comment again or answer if I come up with something. If you find anything, feel free to email me at mattdmo@pigimal.com
 
ok thank you!!!
 

last day (14 days later) »