Syntax highlighting problem

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
kenpierce
Posts: 2
Joined: Wed Mar 17, 2004 5:08 pm

Syntax highlighting problem

Post by kenpierce »

Hello everyone, I'm currently trying out the shareware version of TextPad while writing some php/html. The thing is, although the file has the .php extension, it seems to be highlighting it just as html (since the file contains both), which is causing problems with escaping ". Is there anyway to get TextPad to recognise sections of html and php properly?
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Found this using Search, it mentions using the php4html.syn file, take a look here. HTH
Adam Benson wrote:My favorite syn file is php4html.syn. You will find it at the Add-ons |n-t| page listed as PHP/HTML. It is described as: "Syntax definition file, which adds (TextPad Standard) HTML syntax highlighting, to a PHP source file - permitting easier reading of PHP & HTML intermixed code. It's using the latest PHP4.1 syntax definition file. Contributed by Anonymous, 28 April 2002."
Then I open up and see
the person fumbling here is me
a different way to be
kenpierce
Posts: 2
Joined: Wed Mar 17, 2004 5:08 pm

Post by kenpierce »

Marvellous. I'd missed that one. Thanks very much.
Post Reply