Author Topic: Why SE is highlighting a symbol as a "function" in PHP  (Read 1336 times)

gsexton

  • Community Member
  • Posts: 21
  • Hero Points: 0
Why SE is highlighting a symbol as a "function" in PHP
« on: May 20, 2016, 04:48:56 pm »
I'm having some trouble in my PHP code, and one of the things I've noticed is that a class:

Code: [Select]
class foo {
public $content=null;

function bar(){
return $this->content;
}
}

SlickEdit is highlighting content in bar as though it were a function. Other members are not highlighted in a similar manner. The symptom I'm having in my code is that the value for content doesn't seem to be getting set. E.G.:

$this->content=$values->content;

When viewed in SE, both content symbols are highlighted like PHP functions. So I'm grasping at straws here. I'm not really a PHP person, so any help would be really appreciated.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2900
  • Hero Points: 438
Re: Why SE is highlighting a symbol as a "function" in PHP
« Reply #1 on: June 08, 2016, 12:59:33 am »
'content' is highlighted because it is recognized as a library keyword in PHP.  You can remove it from the list by going to Document > PHP Options... > Color Coding > Lib Symbols