Sample from ganon library (ganon.php):

        
    function parse_php() {
        $start = $this->pos;
        if ($this->next_pos('?>', false) !== self::TOK_UNKNOWN) {
            $this->pos -= 2; 
        }
        $len = $this->pos - 1 - $start;
        $this->status['text'] = (($len > 0) ? substr($this->doc, $start + 1,
$len) : '');
        $this->status['last_pos'] = ++$this->pos;
        return true;
    }


Highlighting stops at line 3 ...

-- 
<http://forum.pspad.com/read.php?4,63633,63633>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem