News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

user custom for '>', '<' and '='

Started by mmkider, March 22, 2006, 06:12:15 AM

Previous topic - Next topic

mmkider

If I keyin '>', '<'  and  '=', I want editor to show the  '>','<'  and '='.
but editor seem do nothing.
I find this link http://forums.next.codeblocks.org/index.php?topic=2639.0
I think space ability as '>', '<' and '='.
so I make this patch,see below:

                case WXK_SPACE:
      + case '>':
      + case '<':
      + case '=':
      {
          m_pList->AddChar(c);
         Destroy();
         event.Skip();
         break;
      }


[attachment deleted by admin]

MortenMacFly

Quote from: mmkider on March 22, 2006, 06:12:15 AM
If I keyin '>'
This would break something like pMyPointer->WhatEver.
However, I've extended the cclist as following:

case WXK_SPACE:
case '(': case '[': case '<': case '=':

...which works quite well (so far). I am currently doing some more resarch if the control key is pressed (e.g. CTRL+S for saving the file will not work if CodeCompletion window is pop-up). If I get this to work I'll file a patch.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]