Hi there
When I fired up the latest release, it seems that it has overriden my custom PHP/HTML syntax coloring.
I had my own version in my home directory in the correct location.
All of a sudden my php pages are with a dark background (#2e2e2e) when set to HTML(PHP) coloring.
The weird thing is I can't find a reference to this hex value in any of the bundle files so I'm at a loss to correct it.
I thought the bundle file saved as HTML-PHP.plist set the syntax coloring for HTML(PHP). If so, why is my local version with it's background color of #efefef not taking effect?
Any clues appreciated...
bongoman
On 21. Oct 2004, at 11:29, bongoman wrote:
When I fired up the latest release, it seems that it has overriden my custom PHP/HTML syntax coloring.
I had my own version in my home directory in the correct location.
If you want to override the default PHP.tmbundle/Syntaxes/PHP.plist then you should have a local PHP.tmbundle with a Syntaxes directory.
I.e. if your local version of PHP is in Custom.tmbundle or similar, it will not override the defaults, since stuff overrides on bundle name alone (although this may be a bit unintuitive for syntaxes, I know).
All of a sudden my php pages are with a dark background (#2e2e2e) when set to HTML(PHP) coloring.
Interesting, since I'm quite sure the defaults are with a white background!?!
Kind regards Allan
I'm not using any custom HTML or PHP bundles, and my HTML(PHP) syntax coloring is using a dark background now as well...
On Oct 21, 2004, at 7:20 AM, Allan Odgaard wrote:
On 21. Oct 2004, at 11:29, bongoman wrote:
All of a sudden my php pages are with a dark background (#2e2e2e) when set to HTML(PHP) coloring.
Interesting, since I'm quite sure the defaults are with a white background!?!
Kind regards Allan
Mine too
Also, I just tested syntax-coloring with SmartTemplate and just noticed that { just looks for the first matching brace and changes background-color for that block.
hence, this would get ugly
class One { /* foo */
function something() { /* bar */ }
/* more foo */ }
/* more foo */ would be without the changed block-background since the first { (after 'One') would match against the function something()s' }
On 2004-10-21, at 16.30, jeremy*pinnix wrote:
I'm not using any custom HTML or PHP bundles, and my HTML(PHP) syntax coloring is using a dark background now as well...
On Oct 21, 2004, at 7:20 AM, Allan Odgaard wrote:
On 21. Oct 2004, at 11:29, bongoman wrote:
All of a sudden my php pages are with a dark background (#2e2e2e) when set to HTML(PHP) coloring.
Interesting, since I'm quite sure the defaults are with a white background!?!
Kind regards Allan
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmate
On 21. Oct 2004, at 16:46, Ivar Åsell wrote:
Also, I just tested syntax-coloring with SmartTemplate and just noticed that { just looks for the first matching brace and changes background-color for that block.
hence, this would get ugly
class One { /* foo */
function something() { /* bar */ }
/* more foo */ }
But ehm... is this smarty syntax?
Kind regards Allan
On 21. Oct 2004, at 16:30, jeremy*pinnix wrote:
I'm not using any custom HTML or PHP bundles, and my HTML(PHP) syntax coloring is using a dark background now as well...
Ah, my bad! It's the Smarty.tmbundle which has its own style for HTML (PHP), I didn't notice that :(
From a terminal, write (one line): mkdir -p ~/Library/Application\ Support/TextMate/Bundles/Smarty.tmbundle/Syntaxes
Then it'll be gone (alternatively remove it from the TextMate.app by using Show Package Contents and navigate to Contents -> SharedSupport -> Bundles)!
Kind regards Allan
On Oct 21, 2004, at 9:48 AM, Allan Odgaard wrote:
On 21. Oct 2004, at 16:30, jeremy*pinnix wrote:
I'm not using any custom HTML or PHP bundles, and my HTML(PHP) syntax coloring is using a dark background now as well...
Ah, my bad! It's the Smarty.tmbundle which has its own style for HTML (PHP), I didn't notice that :(
From a terminal, write (one line): mkdir -p ~/Library/Application\ Support/TextMate/Bundles/Smarty.tmbundle/Syntaxes
Then it'll be gone (alternatively remove it from the TextMate.app by using Show Package Contents and navigate to Contents -> SharedSupport -> Bundles)!
from my experience, I had to actually go into the TextMate.app/Contents/SharedSupport/Bundles/Smarty.tmbundle/Syntaxes and delete the HTML-PHP.plist. Smarty.tmbundle did not exist in ~/Library/Application Support when I installed 1.01
furthermore ... I had my own bundle in the ~/Library which was not overriding the HTML-PHP.plist which would seem to be the correct behavior, no? As soon as I deleted the TextMate.app Smarty HTML-PHP.plist, my custom HTML-PHP.plist was activated.
I think someone mentioned this before but I am still curious: how does TextMate decide which plist in a ~/Library bundle will override another?
k
Kind regards Allan
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmate