Donate Share

Mystix

Tracker: Bugs

5 Weird PHP highlighting - ID: 1280582
Last Update: Comment added ( flatdev )

Code 1:

<?php
/* Do some PHP stuff */
?>

<div id="main">
<p>
Why does this appear in red?
</p>
</div>

<?php
/* Some more PHP stuff
Still highlighted in red */
?>

Result: Lots of red text, and I don't know why.


Code 2:

<?php
/* Do some PHP stuff */
?>

<div id="main" >
<p>
Normal black colour
</p>
</div>

<?php
/* Some more PHP stuff
Normal blue comment highlight */
?>

Result: Adding a space on line 5 fixes the
highlighting, but that's not a normal way to code
HTML.


Steve ( steve-b ) - 2005-09-02 12:28

5

Open

None

PiotrYua

None

None

Public


Comments ( 2 )




Date: 2006-05-31 21:51
Sender: flatdevAccepting Donations

Logged In: YES
user_id=1158522

If you would like to use highlighter that fixex most common
problems with highlighting php inside html like <?php echo
"<?xml ... ?>" ;?>, inteligment brace/token matching, and a
really lots of more, then you should look here :)
http://flatdev.dotgeek.org/downloads.php?project=2


Date: 2005-09-24 12:52
Sender: piotrjuraProject Admin

Logged In: YES
user_id=1266517

It's due to that PHP highlighter isn't HTML-embedded. All
highlighters were made by developers of thirdy party code
used with Mystix, and I also can't unterstand why they've done
PHP highlighter this way. This will be fixed ASAP.


Log in to comment.

Attached File

No Files Currently Attached

Change ( 1 )

Field Old Value Date By
assigned_to nobody 2005-09-24 12:50 piotrjura