From fauzzo@email.it Sun Aug 9 19:56:28 2009
From: Fabio
To: textmate@lists.macromates.com
Subject: [TxMt] How to fix code colours and code checking for php?
Date: Sun, 09 Aug 2009 21:56:25 +0200
Message-ID: <4BD7D847-AE10-4784-96F7-BE1F32BABBAA@email.it>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============5167324728597410099=="
--===============5167324728597410099==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Hallo Guys,
I am making experience with TextMate, I like it very much, but I have =20
found a couple of problems with code validation and php colors. I'll =20
try to explain:
If I am coding a php page and I add an instruction like:
$result =3D mysqli_query($db, "SELECT LOWER(REPLACE(REPLACE(field_name,' =20
','-'),'\'','-')) AS test FROM test_tb");
the code above this line will be marked all of the same color and =20
errors are showed by TextMate... but there are not errors, the problem =20
here seems to be with the filter '\'' that TextMate detects like a =20
missing ' char.
Anybody knows how to fix such situation?
Further more I often use php HERE DOCUMENT feature so if I type =20
something like:
$test =3D <<
To: textmate@lists.macromates.com
Subject: [TxMt] Re: How to fix code colours and code checking for php?
Date: Mon, 10 Aug 2009 10:34:37 +0100
Message-ID:
In-Reply-To: <4BD7D847-AE10-4784-96F7-BE1F32BABBAA@email.it>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0477700935118518538=="
--===============0477700935118518538==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Just use HTML as your heardoc string
i.e.,
$test = <<colored as html
HTML
courtesy of infininight
tim
On 9 Aug 2009, at 8:56 PM, Fabio wrote:
> Further more I often use php HERE DOCUMENT feature so if I type
> something like:
>
> $test = << this should be normal html code and I would like to have it coloured
> like html text and tags.
> But this not happens in textmate.
> TEST;
>
>
> Is there any way to have it coloured like html code while inside
> there?
>
> thanks!
>
> --
> yours
>
> Fabio
>
>
>
>
>
> --
> Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e
> SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
>
> Sponsor:
> Last Minute a Riccione. Scopri le offerte su vacanzedivertenti.it
> * Buona Vacanza!
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=9391&d=9-8
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
--===============0477700935118518538==--