Author Topic: user custom for '>', '<' and '='  (Read 7873 times)

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
user custom for '>', '<' and '='
« on: March 22, 2006, 06:12:15 am »
If I keyin '>', '<'  and  '=', I want editor to show the  '>','<'  and '='.
but editor seem do nothing.
I find this link http://forums.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]
« Last Edit: March 22, 2006, 08:43:05 am by mmkider »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: user custom for '>', '<' and '='
« Reply #1 on: March 22, 2006, 09:05:34 am »
If I keyin '>'
This would break something like pMyPointer->WhatEver.
However, I've extended the cclist as following:
Code
		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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ