[PHP] Re: PHP 4.1.0 patch for Quanta IDE, The Sequel

2001-12-20 Thread J Smith


I sumbitted a similar patch to the Quanta team about a week ago. It may 
appear in an upcoming release, possibly Quanta 3, which will come with KDE 
3.0.

A few other additions I made:

- highlighting is now case-insensitive for everything. I believe older 
versions were case-sensitive for keywords, like function, class, etc.

- support for ASP-style opening and closing tags (% and % instead of 
?php, ?, etc.)

I'm also working on porting a newer editor from Kate/ktexteditor into 
Quanta. It's been slow going, but things have picked up (it compiles and 
runs now, albeit with a bunch of segfaults). This will make adding syntax 
highlighting instructions much easier, as the latest versions of Kate allow 
you to define highlighting rules in XML files, and the highlighting 
instructions are set up at run-time rather than compile time. 

Maybe over the XMas break I'll be able to finish it up.

J


Mike Eheler wrote:

 
http://sourceforge.net/tracker/index.php?func=detailaid=495239group_id=4113atid=304113
 
 Download the attached file, and run
 
 patch -p1 -i quanta-2.0.1-php-4.1.0.diff
 
 That will patch your source tree.. then just configure, make, install.
 
 I've actually tested this one, so go nuts people. :) Please let me know
 if you find any functions that should be keywords or keywords that
 shouldn't be keywords, or functions/keywords that just plain aren't in
 the list.
 
 Mike


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: PHP 4.1.0 patch for Quanta IDE, The Sequel

2001-12-20 Thread Mike Eheler

Cool, however PHP is not case sensitive, nor is ASP or HTML for that 
matter, therefore case sensitive syntax highlighting will not be good 
for these languages.

Mike

J Smith wrote:

 I sumbitted a similar patch to the Quanta team about a week ago. It may 
 appear in an upcoming release, possibly Quanta 3, which will come with KDE 
 3.0.
 
 A few other additions I made:
 
 - highlighting is now case-insensitive for everything. I believe older 
 versions were case-sensitive for keywords, like function, class, etc.
 
 - support for ASP-style opening and closing tags (% and % instead of 
 ?php, ?, etc.)
 
 I'm also working on porting a newer editor from Kate/ktexteditor into 
 Quanta. It's been slow going, but things have picked up (it compiles and 
 runs now, albeit with a bunch of segfaults). This will make adding syntax 
 highlighting instructions much easier, as the latest versions of Kate allow 
 you to define highlighting rules in XML files, and the highlighting 
 instructions are set up at run-time rather than compile time. 
 
 Maybe over the XMas break I'll be able to finish it up.
 
 J
 
 
 Mike Eheler wrote:
 
 
 
http://sourceforge.net/tracker/index.php?func=detailaid=495239group_id=4113atid=304113
 
Download the attached file, and run

patch -p1 -i quanta-2.0.1-php-4.1.0.diff

That will patch your source tree.. then just configure, make, install.

I've actually tested this one, so go nuts people. :) Please let me know
if you find any functions that should be keywords or keywords that
shouldn't be keywords, or functions/keywords that just plain aren't in
the list.

Mike

 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: PHP 4.1.0 patch for Quanta IDE, The Sequel

2001-12-20 Thread Jack Dempsey

really?
?
$THIS_IS_A_VARIABLE=1;
$this_is_a_variable=2;

echo $THIS_IS_A_VARIABLE\n;
echo $this_is_a_variable\n;
?

seems sensitive to me...

Mike Eheler wrote:

 Cool, however PHP is not case sensitive, nor is ASP or HTML for that
 matter, therefore case sensitive syntax highlighting will not be good
 for these languages.

 Mike

 J Smith wrote:

  I sumbitted a similar patch to the Quanta team about a week ago. It may
  appear in an upcoming release, possibly Quanta 3, which will come with KDE
  3.0.
 
  A few other additions I made:
 
  - highlighting is now case-insensitive for everything. I believe older
  versions were case-sensitive for keywords, like function, class, etc.
 
  - support for ASP-style opening and closing tags (% and % instead of
  ?php, ?, etc.)
 
  I'm also working on porting a newer editor from Kate/ktexteditor into
  Quanta. It's been slow going, but things have picked up (it compiles and
  runs now, albeit with a bunch of segfaults). This will make adding syntax
  highlighting instructions much easier, as the latest versions of Kate allow
  you to define highlighting rules in XML files, and the highlighting
  instructions are set up at run-time rather than compile time.
 
  Maybe over the XMas break I'll be able to finish it up.
 
  J
 
 
  Mike Eheler wrote:
 
 
  
http://sourceforge.net/tracker/index.php?func=detailaid=495239group_id=4113atid=304113
 
 Download the attached file, and run
 
 patch -p1 -i quanta-2.0.1-php-4.1.0.diff
 
 That will patch your source tree.. then just configure, make, install.
 
 I've actually tested this one, so go nuts people. :) Please let me know
 if you find any functions that should be keywords or keywords that
 shouldn't be keywords, or functions/keywords that just plain aren't in
 the list.
 
 Mike
 
 

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: PHP 4.1.0 patch for Quanta IDE, The Sequel

2001-12-20 Thread Mike Eheler

?
echo (null == Null);
eCho (NULL == NuLl);
eCHo (FALSE == false);

prINt(pre);
Print_R(GET_defined_VaRs());
sPrinTF('%s','/pre');
?

Variable names are the *only* exception.

So yes, $var != $Var;

And variable names are not syntax highlighted specifically (other than 
the fact that variables are highlighted). So by case-sensitizing keyword 
and function references, that is making a lot of scripts *not* syntax 
highlight properly, because only people who use FALSE will be 
highlighted, while people who use False or false or even FalsE will be 
left in the dark.

Or perhaps you prefer to code using MySQL_Connect().. people driven to 
PHP from ASP might code like this when they start.

Mike

Jack Dempsey wrote:

 really?
 ?
 $THIS_IS_A_VARIABLE=1;
 $this_is_a_variable=2;
 
 echo $THIS_IS_A_VARIABLE\n;
 echo $this_is_a_variable\n;
 ?
 
 seems sensitive to me...
 
 Mike Eheler wrote:
 
 
Cool, however PHP is not case sensitive, nor is ASP or HTML for that
matter, therefore case sensitive syntax highlighting will not be good
for these languages.

Mike

J Smith wrote:


I sumbitted a similar patch to the Quanta team about a week ago. It may
appear in an upcoming release, possibly Quanta 3, which will come with KDE
3.0.

A few other additions I made:

- highlighting is now case-insensitive for everything. I believe older
versions were case-sensitive for keywords, like function, class, etc.

- support for ASP-style opening and closing tags (% and % instead of
?php, ?, etc.)

I'm also working on porting a newer editor from Kate/ktexteditor into
Quanta. It's been slow going, but things have picked up (it compiles and
runs now, albeit with a bunch of segfaults). This will make adding syntax
highlighting instructions much easier, as the latest versions of Kate allow
you to define highlighting rules in XML files, and the highlighting
instructions are set up at run-time rather than compile time.

Maybe over the XMas break I'll be able to finish it up.

J


Mike Eheler wrote:


http://sourceforge.net/tracker/index.php?func=detailaid=495239group_id=4113atid=304113


Download the attached file, and run

patch -p1 -i quanta-2.0.1-php-4.1.0.diff

That will patch your source tree.. then just configure, make, install.

I've actually tested this one, so go nuts people. :) Please let me know
if you find any functions that should be keywords or keywords that
shouldn't be keywords, or functions/keywords that just plain aren't in
the list.

Mike


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

 


-- 
Long life is in store for you.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]