| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"> |
| <html> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| <meta name="generator" content="Adobe RoboHelp 8"> |
| <title>Mark Occurrences</title> |
| <link rel="StyleSheet" href="default.css" type="text/css"> |
| <style type="text/css"> |
| <!-- |
| body { border-left-style:None; |
| border-right-style:None; |
| border-bottom-style:None; |
| background-color:Transparent; |
| border-top-style:None; } |
| --> |
| </style> |
| <style type="text/css"> |
| <!-- |
| body { border-left-style:None; |
| border-right-style:None; |
| border-bottom-style:None; |
| background-color:Transparent; |
| border-top-style:None; } |
| --> |
| </style> |
| <script type="text/javascript" language="JavaScript"> |
| //<![CDATA[ |
| function reDo() { |
| if (innerWidth != origWidth || innerHeight != origHeight) |
| location.reload(); |
| } |
| if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) { |
| origWidth = innerWidth; |
| origHeight = innerHeight; |
| onresize = reDo; |
| } |
| onerror = null; |
| //]]> |
| </script> |
| <style type="text/css"> |
| <!-- |
| div.WebHelpPopupMenu { position:absolute; |
| left:0px; |
| top:0px; |
| z-index:4; |
| visibility:hidden; } |
| p.WebHelpNavBar { text-align:right; } |
| --> |
| </style> |
| <script type="text/javascript" language="javascript1.2" src="whmsg.js"></script> |
| <script type="text/javascript" language="javascript" src="whver.js"></script> |
| <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script> |
| <script type="text/javascript" language="javascript1.2" src="whutils.js"></script> |
| <script type="text/javascript" language="javascript1.2" src="whlang.js"></script> |
| <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script> |
| <script type="text/javascript" language="javascript1.2">//<![CDATA[ |
| <!-- |
| if (window.gbWhTopic) |
| { |
| var strUrl = document.location.href; |
| var bc = 0; |
| var n = strUrl.toLowerCase().indexOf("bc-"); |
| if(n != -1) |
| { |
| document.location.href = strUrl.substring(0, n); |
| bc = strUrl.substring(n+3); |
| } |
| |
| if (window.setRelStartPage) |
| { |
| addTocInfo("Concepts\nMark Occurrences"); |
| addAvenueInfo("Concepts","matching_brackets.htm","code_folding.htm"); |
| |
| } |
| |
| document.write("<p style=\"text-align:left\"> "); |
| AddMasterBreadcrumbs("ide_help.htm", "", ">", "Home", "pdt_table_of_contents.htm"); |
| document.write("<a href=\"concepts.htm\">Concepts<\/a> > Mark Occurrences<\/p>"); |
| |
| |
| if (window.setRelStartPage) |
| { |
| setRelStartPage("ide_help.htm"); |
| |
| autoSync(0); |
| sendSyncInfo(); |
| sendAveInfoOut(); |
| } |
| |
| } |
| else |
| if (window.gbIE4) |
| document.location.reload(); |
| //--> |
| //]]></script> |
| </head> |
| |
| <body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5"><script type="text/javascript" language="javascript1.2">//<![CDATA[ |
| <!-- |
| if (window.writeIntopicBar) |
| writeIntopicBar(4); |
| //--> |
| //]]></script> |
| <div style="width: 100%; position: relative;" id="header"> |
| |
| |
| <p align="right"><a |
| title="Documentation Survey" href="http://spreadsheets.google.com/viewform?formkey=dC1scEswTjFia2tDQ3Y5TVJBbkNQcWc6MQ">Documentation |
| Survey</a> |
| | <a href="javascript:crlf="";h=location.href;t=document.title;e = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (e!=null) location="mailto:documentation@zend.com" + "?Subject= Feedback on PDT for page " + escape(t) + "&Body=" + escape(e).replace(/ /g, "+") + crlf + " "; void 0"><span |
| style="background-color: #ffffff;">Submit Documentation</span><span |
| style="background-color: #ffffff;"> Feedback</span></a><span |
| style="background-color: #ffffff;"></span><span style="background-color: #ffffff;"> |
| </span><span style="background-color: #ffffff;">| |
| </span><span |
| style="background-color: #ffffff;"><a title="View Latest Version and Get PDF Online" |
| href="http://www.zend.com/en/resources/zend-documentation/" |
| target="_blank">View Latest |
| Version and Get PDF Online</a></span></p> |
| </div> |
| |
| |
| <h1>Mark Occurrences |
| </h1> |
| <p>The Mark Occurrences feature enables you to see where an element is |
| referenced by simply clicking on the element in the editor.</p> |
| <p>When the Mark Occurrences feature is enabled, all occurrences of the |
| element within the active file will be highlighted, and indicators will |
| be displayed in the annotations bar (to the right of the editor).</p> |
| <p>In addition, hovering over the element will cause a tooltip to be displayed |
| with the location of all references of the element, including occurrences |
| of the element in other files.</p> |
| <p class="picture"><img src="mark_occurrences.png" alt="Mark Occurrences Example" title="Mark Occurrences Example" style="border: none;" width="490" height="377" border="0"></p> |
| <p>Occurrences can be of 2 types - “Write Occurrence” (for occurrences |
| that are in a write mode) or “Read Occurrence” (for occurrences that are |
| in a read mode). These will be highlighted in different colors according |
| to the setting configured for PHP elements 'read' and 'write' occurrences |
| in the <a href="../../plugins_root/org.eclipse.platform.doc.user/reference/ref-22.htm">Annotations |
| preferences page</a> (<span style="font-weight: bold;"><b>Window | Preferences |
| | General | Editors | Text Editors | Preferences</b></span>). Here you can |
| also configure the indicators used in the vertical ruler/marker bar (to |
| the left of the editor) and the annnotations bar (to the right of the |
| editor).</p> |
| <p> </p> |
| <p>The types of elements whose occurrences will be highlighted can be configured |
| in the <a href="mark_occurences.htm">Mark Occurrences preferences page</a> |
| (<span style="font-weight: bold;"><b>Window | Preferences | PHP | Editor |
| | Mark Occurrences |
| </b></span>).</p> |
| <p> </p> |
| <p>By default, the following types of elements are marked:</p> |
| <ul type="square"> |
| <li><p>Method Exit - Exit points (throws / return / end of flow) of |
| a method will be marked</p></li> |
| <li><p>Break / Continue - Scope (for, foreach, while, do-while or switch |
| structure) of a break / continue statement will be marked</p></li> |
| <li><p>Local variables</p></li> |
| <li><p>Global variables</p></li> |
| <li><p>Parameters</p></li> |
| <li><p>Functions</p></li> |
| <li><p>Methods</p></li> |
| <li><p>Fields</p></li> |
| <li><p>Class Constants</p></li> |
| <li><p>Constants (defined)</p></li> |
| <li><p>Class/Interface</p></li> |
| <li><p>HTML Tags</p></li> |
| </ul> |
| <table cellspacing="0" width="100%"> |
| <col style="width: 7.093%;"> |
| <col style="width: 92.907%;"> |
| <tr style="vertical-align: top; |
| height: 16px;"> |
| <td style="width: 7.093%; padding-right: 10px; |
| padding-left: 10px;"><p |
| style="font-size: 6pt;"> </p></td> |
| <td style="width: 92.907%; |
| padding-right: 10px; padding-left: 10px;"><p> </p></td> |
| </tr> |
| <tr style="vertical-align: top; |
| height: 35px;"> |
| <td style="width: 7.093%; padding-right: 10px; |
| padding-left: 10px;"><p |
| style="font-size: 6pt;"><img src="link_icon.png" alt="link_icon.png" style="border: none;" width="32" height="40" border="0"> |
| </p></td> |
| <td style="width: 92.907%; |
| padding-right: 10px; padding-left: 10px;"><p |
| style="font-weight: bold;">Related Links:</p> |
| <p><a href="using_mark_occurrences.htm">Using Mark Occurrences</a><a href="mark_occurences.htm"><br> |
| Mark Occurrences Preferences</a></p></td> |
| </tr> |
| <tr style="vertical-align: top; |
| height: 19px;"> |
| <td style="width: 7.093%; padding-right: 10px; |
| padding-left: 10px;"><p |
| style="font-size: 6pt;"> </p></td> |
| <td style="width: 92.907%; |
| padding-right: 10px; padding-left: 10px;"><p> </p></td> |
| </tr> |
| </table> |
| <div style="width: 100%; position: relative;" id="footer"> |
| |
| <p style="text-decoration: underline; " |
| align="center">PHP Development |
| Tools</p> |
| |
| |
| </div> |
| <script type="text/javascript" language="javascript1.2">//<![CDATA[ |
| <!-- |
| if (window.writeIntopicBar) |
| writeIntopicBar(0); |
| |
| highlightSearch(); |
| //--> |
| //]]></script> |
| </body> |
| </html> |