[TxMt] PHP tag on first line of file trips up HTML bundle
Allan Odgaard
throw-away-2 at macromates.com
Mon Feb 11 01:43:54 UTC 2008
On 8 Feb 2008, at 22:33, Nathan Duran wrote:
> When using PHP, it is oftentimes necessary to place a "<?php" tag
> right at the beginning of the file, as any leading whitespace will
> render the header() function useless. Unfortunately, whenever I open
> such a file in TextMate, it is not recognized as HTML. There's no
> syntax highlighting, no autocompletion, nothing. Getting rid of the
> opening PHP block, or simply inserting a space in front of it sets
> everything right, but then the script obviously stops working.
Can you attach a (html) file where TM shows this problem?
Also see http://wiki.macromates.com/Troubleshooting/RevertToDefaultBundles
-- it sounds like you might have some local (bad) changes.
More information about the textmate
mailing list