PDA

View Full Version : PHP Highlighting


Ganon of Evil
09-09-2002, 06:35 PM
Will FP3 have PHP/MySQL highlighting? I think that would be a very useful feature.

Edit: Nevermind, just noticed another topic. How much will the brother version cost anyways.

jigal
09-11-2002, 10:28 PM
Proper PHP highlighting will be an extreme challenge:

- PHP code might be put between normal HTML and JavaScript/VbScript/PerlScript/...
- PHP code might contain lots of echo statements which can contain HTML and Javascript/VbScript/PerlScript/... with escaped quotes plus PHP variables
- the echo <<<endMarker statement will be followed by a block of HTML/VbScript/PerlScript/..., possibly with PHP variables until the endMarker is found

The algorithm for this might receive a Nobel prize :OO

Dynasty
09-12-2002, 01:21 AM
Why would php syntax highlighting be hard? I mean this board can do it.

Josh
09-12-2002, 02:14 AM
yeah,so there are Nobel prize all over the world.lol
btw if the computer can execute the php script,then it could be highlighted,right?

-TheDarkEye-
09-12-2002, 02:58 AM
this board can only do it because the php engine does it for the board. however, syntax highlighting isnt very hard to do in php; no harder than html anyway.

EnwTheGood
09-12-2002, 03:23 PM
jigal - The kind of PHP highlighting you're suggesting has never been done before (at least to my knowledge).

Even PHPEdit doesn't do syntax highlighting within strings. That feature would be interesting, but it's got to make sure not to highlight stuff that shouldn't be (i.e. Bob went into the lake and saw the fish. His description was fascinating.)

I'm not sure about endMarker, as I've never actually used it.

justice
09-13-2002, 02:58 PM
i.e. Bob went into the lake and saw the fish. His description was fascinating.)

With regular expressions it is no problem to solve this problem!

-TheDarkEye-
09-13-2002, 08:07 PM
regex would be slow as piss. there are much better ways to do syntax hylighting in C.

smartsaga
09-16-2002, 12:23 PM
Ive been using Maguma php Studio Lite and Dev-php. What those do is that they only let you use the highlighter you want to use at the moment (html, php, java, java script, asp, etc, etc) works for me.

Sky
09-19-2002, 01:17 PM
Where do yo get those proggies?

Admin
09-20-2002, 05:53 AM
The next version of 1st Page will have PHP highlighting... The colors look awesome :)

Sky
09-20-2002, 10:54 AM
YEA!!!! .... dunno why it'll help me so much though. i only use require("");.....

smartsaga
09-20-2002, 12:44 PM
well, as a person with almost no life other than work (PC Tech) I spend a bunch of time downloading the all mighty freeware.

DEV-php is from http://devphp.sourceforge.net/

Maguma php Studio LITE is from http://www.maguma.com/