Hi all, I've some pages with mixed html and php code, with .php extension, so TM see them as "php". If there is a # sign in a line, all the rest of line will show in the comment color, even there are other tags and words: for example:
h1 {color: #003366; margin: 20px; background-color: #ADD8E6; padding: 5px; text-shadow: black 0px 0px 5px;} the substring after # is all violet and not white
<br /> Safari 2.0 e` l'unico browser usabile</p> after the # the string "unico browser usabile" is all violet, although "Safari 2.0 e` l" is white. If I use ' instead of ' all the rest will be green and not white :)
Ok, the page is (x)html with php included, but I must save it with the .php extension and when TM open it is correct to see it *also* as php.
Is it possible to see correctly both php and html (and javascript) parts?
Thanks in advance
Salvo
On 19/08/2005, at 20.14, salvo wrote:
Ok, the page is (x)html with php included, but I must save it with the .php extension and when TM open it is correct to see it *also* as php.
Open the file and change the language in the menu. TM should remember this new association, and treat .php as html or xhtml or whatever you select in the future. In the main menu, I think, there is a 'File associations' item or similar, displaying currently memoized extensions.
-- Sune.
Open the file and change the language in the menu. TM should remember this new association, and treat .php as html or xhtml or whatever you select in the future. In the main menu, I think, there is a 'File associations' item or similar, displaying currently memoized extensions.
-- Sune.
thanks, Sune! it works well. It is very useful alternate beetween php and xhtml syntax, ok! Also option+control+shift+p and option+control+shift+h are good things: I must read better the help files *soon* :-))
TextMate is wonderful.