Folks,
Is it safe to assume (probably not!) that the editor in use by C::B is a modified NotePad++ ? If not, then please disregard the rest of this post.
I use a laptop PC running Windows XP.
I really like the way C::B suggests what you may want to type, and offers structure members etc, which can simply be selected - I think that's really clever and very useful, and I wouldn't want to lose it by forcing the use of regular NP++ (even if I figured out how to do it), but if the C::B editor is based on NP++, as I suspect, would it be possible for me to incorporate some of NP++'s attributes? Could you tell me how to do it? The NP++ features that I really miss are ....
a) In NP++, if the Alt key is held while dragging the mouse downwards, or Alt-Ctrl are held while pressing up/down arrows, it makes a vertical cursor line that can be many lines deep. C::B editor does that too (which makes me think it is probably based on NP++ code). However, in NP++, if I then type, my characters appear in vertical columns on all of the lines covered by the cursor. In C::B, this does not happen. This function is useful when enclosing an existing block of code (eg, an if() statement) inside a new block (eg, a for( ;; ) loop) that is being added. A vertical cursor can span all of the lines of the original block - the if( ;; ) - and if spaces are typed, they are inserted in front of each line, and the entire block moves to the right to correct the indentation. Similarly, the Del key, or Delete-left, can be used to move a block to the left.
b) In C::B, the search does not work properly - there are radio buttons for searching up or down. Repeat search is F3, but if Search-up is selected, F3 always searches down. Also, if a word is highlighted, then Search invoked, the word is used as a search string, but Search does not find the next occurrence above or below - it finds the one that is already highlighted, and then F3 searches only downward. If the cursor is not on the string to be searched for, it must be manually typed into the search field (oh! the work involved!), so this editor looks a bit clunky in this respect when compared with the standard NP++ release, which also has a Search-again button in the search box (F3 also works). Of course, you don't want the Search box to overlay the screen after the search, but NP++ overcomes that by allowing the Search box to be set so transparent that text is easily read through it, and it becomes opaque again when clicked.
c) NP++ has a find-and-replace function, which would prove useful when a decision is made that a variable name should be changed to something more descriptive throughout a function or even an entire file if the variable is global.
d) In NP++, if Shift-Ctrl are held while pressing the up or down arrow, then the line on which the cursor is sitting, or the highlighted block, will be moved up and down the document. The C::B editor can't do that, but it would be useful when, for example, it is discovered that a line of code has been written before another, when it should have been after, or a function follows another when it should have preceded it.
I know that all of these things are merely inconveniences and can be manually worked around quite easily, but I have become so used to using them in NP++ that I have come to depend on them. If convenience didn't matter, we would all still be using WordPad!
Thanks... Mij.