<http://forum.pspad.com/read.php?f=2&i=10782&t=10781> 
----------------------------------------------------------------

Here is a sample for the wrong syntax highlighting,
copy and paste this as PHP:

---------------- SNIP ----------------
<?php
  $file="test.xml";
  $data = fopen($file, "w+");

  //Write Header
  $header[0]='<?xml version="1.0" encoding="ISO-8859-1"?>';
  $header[1]='<rss version="2.0">';
  $header[2]='<channel>';
  $header[3]='<title>A test</title>';
  $header[4]='<link>http://www.somewhere.com/</link>';
  $header[5]='<description>A description</description>';
  $header[6]='<pubDate>Thu, 27 Dec 2005 08:09:46 +0100</pubDate>';
  $header[7]='<language>de-de</language>';
  for ($i = 0; $i < count($header); $i++)
  {
    fseek($data, 0, SEEK_END);
    fwrite($data, $header[$i]."\n");
  }
   
    
  $result = mysql_query($query); 
  while ($line = mysql_fetch_array($result)) 
  {
  }

?>
---------------- SNIP ----------------

$file in row 2, $data in row 3 and $header in row 6 is a variable blue
formatted,
but count($header) is red an bold and all the following rest black and
bold.

Why !?

-- 
PSPad freeware editor http://www.pspad.com

Reply via email to