{"action":"opened","issue":{"url":"https://api.github.com/repos/jsoverson/preprocess/issues/44","labels_url":"https://api.github.com/repos/jsoverson/preprocess/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/jsoverson/preprocess/issues/44/comments","events_url":"https://api.github.com/repos/jsoverson/preprocess/issues/44/events","html_url":"https://github.com/jsoverson/preprocess/issues/44","id":53234960,"number":44,"title":"Problems with preprocessing php in html files","user":{"login":"examinedliving","id":3099093,"avatar_url":"https://avatars.githubusercontent.com/u/3099093?v=3","gravatar_id":"","url":"https://api.github.com/users/examinedliving","html_url":"https://github.com/examinedliving","followers_url":"https://api.github.com/users/examinedliving/followers","following_url":"https://api.github.com/users/examinedliving/following{/other_user}","gists_url":"https://api.github.com/users/examinedliving/gists{/gist_id}","starred_url":"https://api.github.com/users/examinedliving/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/examinedliving/subscriptions","organizations_url":"https://api.github.com/users/examinedliving/orgs","repos_url":"https://api.github.com/users/examinedliving/repos","events_url":"https://api.github.com/users/examinedliving/events{/privacy}","received_events_url":"https://api.github.com/users/examinedliving/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-02T02:29:54Z","updated_at":"2015-01-02T02:29:54Z","closed_at":null,"body":"When I have included php in an html file, I run into several obstacles.  It is not clear how to comment items out.  For example:\r\n        \r\n        <?php echo 'hi'; ?>\r\n        <div>Hi again</div>\r\n        <!-- @include hi_3.php -->\r\n\r\nThat fails sometimes, and likewise, sometimes it fails when I use `//` style comments for inclusion.\r\n\r\nAlso, another (perhaps too specific to me) issue is that if I don't include `<?php ... ?>` tags in Sublime Text, syntax highlighting doesn't work properly, and if I do include them (since the included files sometimes come between existing `<?php` tags), the end file breaks; so I cleverly (or so I thought) excluded the `<?php` tags like so:\r\n\r\n       // @exclude\r\n          <?php\r\n        // @endexclude\r\n\r\nAnd It works!  But it seems hackish, and I'm not sure that it is the best solution.  Shouldn't the tag prior to the `<?php` have to use the other commenting style?\r\n\r\nI've been using this with `gulp` and `livereload` for awhile now, and I love it, but I'm developing in `wordpress` currently, and the processing seems to get done about one in three times; the other times a non-processed file missing the included files (and missing the `@include` snippet) is passed through.  This is strange behavior.  Any thoughts?"}}