<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I'd suggest reading <A href="http://macromates.com/blog/archives/2005/07/06/introduction-to-scopes/">http://macromates.com/blog/archives/2005/07/06/introduction-to-scopes/</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">As for comments, the Toggle Comment command in the Source bundle uses two variables (TM_COMMENT_START/END), these variables are set for misc. scopes (in the bundle editor), so even in an HTML file, it will use proper comment markers in the misc. <style>…</style>, <script>…</script>, <?php … ?>, <% # ruby %> etc. blocks -- and in plain HTML, it'll also work.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This however require that you have the language set to HTML (and not PHP, which would make the scope of the entire file source.php).</DIV></BLOCKQUOTE></DIV><BR><DIV><FONT class="Apple-style-span" color="#0000DD">I've read up on that, thanks. I'm still a bit in the dark here; my file is set to HTML as language, but because the file NAME is ".php", all comments are being made as "#" rather than "<!-- -->", regardless of what the blocks are.</FONT></DIV></BODY></HTML>