NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Highlighting of custom PHPDOC annotations


Joined: 25 Aug 2012
Posts: 4
Reply with quote
PHPED highlights common annotations like @var or @returns differently to the rest of the PHPDOC block, which is a great feature to make it more readable. However it does not highlight custom annotations like for example the Doctrine annotations @onetomany or @manytomany. This makes these annotations look like mistakes.

Is there any way of extending the list of accepted and highlighted annotations?
View user's profileFind all posts by DrHolidaySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
open %APPDATA%\nusphere\phped\config\phpdoctags.cfg in an editor and add @onetomany and other tags you wish, like below:
Code:

  <phpdoctag>
    <name>@onetomany</name>
    <description>some useful comment</description>
  </phpdoctag>

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 25 Aug 2012
Posts: 4
Reply with quote
Exactly what I needed, thank you!
View user's profileFind all posts by DrHolidaySend private message
Highlighting of custom PHPDOC annotations
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic