Hey guys,
Since the latest 3114 build, HTML inside PHP control structures doesn’t work correctly. Syntax highlighting, emmet, default HTML tag expansions. Nothing works at all. Here’s a quick screencast:
Anyone aware of this issue?
Thanks!
Hey guys,
Since the latest 3114 build, HTML inside PHP control structures doesn’t work correctly. Syntax highlighting, emmet, default HTML tag expansions. Nothing works at all. Here’s a quick screencast:
Anyone aware of this issue?
Thanks!
I thought I was just me, i have same problem when i update to 3114 some hours ago only works if i change syntax to html on bottom
@rhcarlosweb, yep, there’s no point however changing the syntax to HTML if we are working with PHP
One thing, when I change the control structure to alternate (endif) syntax, it works fine:
If you really want to work around this yourself before the next build is released, you need to make a manual override and basically revert this commit.
To do this:
PRV: O
and select PackageResourceViewer: Open Resource
PHP
PHP Source.sublime-syntax
#
at the start of the line.Tools
menu -> Browse Packages
-> PHP
) when you upgrade to the next build because it may be fixed properly.Note: this isn’t a perfect solution, you will still end up with this syntax highlighting bug: https://github.com/sublimehq/Packages/issues/362
@qgates, yes, there is a reference to this forum post in this issue: https://github.com/sublimehq/Packages/issues/387
@kingkeith thanks for the quick fix, I’ll try that out. However, really hoping for an official fix soon as this is important.
Thanks for the solution, @gerry! It indeed helped. Not completely resolved the issue, PHP expansion doesn’t work, but HTML expansion does. So half of the issue resolved.
Thank you!
@zeshanshani php expansion? Can you give an example?
HTML seems to fine:
#page>div.logo+ul#navigation>li*5>a{Item $}<tab>
expands to
<div id="page">
<div class="logo"></div>
<ul id="navigation">
<li><a href="">Item 1</a></li>
<li><a href="">Item 2</a></li>
<li><a href="">Item 3</a></li>
<li><a href="">Item 4</a></li>
<li><a href="">Item 5</a></li>
</ul>
</div>
Having installed php-grammar make sure you also install the completions and snippets which are not included in the grammar. I should maybe think about auto installing those when the grammar is installed because the grammar disables the default native php package.
PHP Completions, PHP Snippets, and PHPUnit.
I’m having the same problem. For example, typing ‘div’ + TAB in some html, used to bring up the completion with a full
etc. Since the update, it is trying to complete with a PHP function (variant_div). This is really hampering my coding. Is there anyway to roll back to the update in its entirety?