[TextMate] How to fix HTML syntax yourself

Eric Curtis ecurtis at rgbdesignstudio.com
Thu Oct 7 16:44:51 UTC 2004


Well this will certainly be fixed in the upcoming version (Justin  
already said so) and he pointed out what was wrong but here is how you  
can easily get HTML syntax working now:

Go to:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/ 
HTML.tmbundle/Syntaxes/html.plist

then edit lines 62 and 64 by swapping the styles and script names. It  
should look like this in the end:

		/*{ name = "Embedded JavaScript"; backgroundColor = "#E5E5E5"; begin  
= "<(?i:script)\\>"; end = "</(?i:script)>"; },*/
		{
			name = "Embedded CSS"; 		backgroundColor = "#E5E5E5"; begin =  
"<(?i:style)\\>"; end = "</(?i:style)>";
			patterns = (
				{ include = "CSS"; }
			);
		
		},


Later,

Eric Curtis




More information about the textmate mailing list