WinPTE.com

 

Highlight Word Feature

By default F12 or the middle mouse button are defined to highlight a word. Ctrl-F12 or double clicking the middle button clear all highlights. You can also highlight an arbitrary string by making a one line character selection and either clicking on it with the middle button or using the F12 key.

F11 and Shift+F11 move to next and previous occurrences of the highlighted word.

Additionally, highlighting can be done through the Find/Replace dialog by checking the Highlight Word option. This gives complete control of the case sensitivity, context and scope of the highlighted string. (Find/Replace can be opened using the Ctrl+F or Ctrl+R keys)

Highlighting new words does not remove highlighting from previous ones it simply changes their highlight style. Up to 100 different words or strings can be highlighted at any one time.

This functionality is also useful for visually detecting missing elements between two lists. Highlight the elements in one list, and any elements not highlighted in the other list will visually stand out. F12 key is fully power block mode enabled and can be used in conjunction with Power Block mode to highlight a large number of strings instead of having to click on each one separately.

Here is an example of a C++ constructor that fails to initialize one of the data members. Can you spot it? Beside it is another where all the initialized members have been highlighted. How fast can you spot the uninitialized member now? (Hint: it is not highlighted)

 Line 
       
    1 
    2 
    3 
    4 
    5 
    6 
    7 
    8 
    9 
   10 
   11 
   12 
   13 
   14 
   15 
   16 
   17 
   18 
   19 
   20 
   21 
   22 
   23 
   24 
   25 
   26 
   27 
   28 
// File: , lines 1 to 28
 
     
    class CColorPick::CColorPick()
    {
    public:
        CColorPick()();
         
    protected:
        bool m_bSkipTextUpdate;
        bool m_bEraseBackground;
        int m_nLastAction;
        int m_nID;                   
        bool m_bUpdateLayout;
        bool m_bLayoutUpdated;
        BOOL m_bDebug;               
        BOOL m_bInitialized;         
    };
     
    CColorPick::CColorPick()
    {
        m_bInitialized = FALSE;
        m_bSkipTextUpdate = false;
        m_bEraseBackground = false;
        m_nID = 0;
        m_bDebug = FALSE;
        m_bUpdateLayout = false;
        m_bLayoutUpdated = false;
    }
      
 
 Line 
       
    1 
    2 
    3 
    4 
    5 
    6 
    7 
    8 
    9 
   10 
   11 
   12 
   13 
   14 
   15 
   16 
   17 
   18 
   19 
   20 
   21 
   22 
   23 
   24 
   25 
   26 
   27 
   28 
// File: , lines 1 to 28
 
     
    class CColorPick::CColorPick()
    {
    public:
        CColorPick()();
         
    protected:
        bool m_bSkipTextUpdate;
        bool m_bEraseBackground;
        int m_nLastAction;
        int m_nID;                   
        bool m_bUpdateLayout;
        bool m_bLayoutUpdated;
        BOOL m_bDebug;               
        BOOL m_bInitialized;         
    };
     
    CColorPick::CColorPick()
    {
        m_bInitialized = FALSE;
        m_bSkipTextUpdate = false;
        m_bEraseBackground = false;
        m_nID = 0;
        m_bDebug = FALSE;
        m_bUpdateLayout = false;
        m_bLayoutUpdated = false;
    }
      

 

 

Site Map | Privacy Policy | Contact Us | ©2004 Winpte.com