gbCodeLib - Code Editor
The built-in source code editor provides a feature-rich means of viewing and
editing snippet source code. Features include unlimited Undo/Redo, split views,
block commenting, autoindenting, brace matching, line numbering and much more!
Context Menu
Many of the editor settings are found in the Options > Editor menu, but gbCodeLib also
provides a context menu (right mouse click on the source code editor) which
puts the following options closer at hand:
- Remove Bookmark
Removes the bookmark from the currently selected snippet
- Cut
Removes the current selection and places it on the clipboard
- Copy
Copies the current selection to the clipboard
- Paste
Pastes the contents of the clipboard at the caret position
- Find ..
Opens a dialog window for finding text within the current snippet
- Replace ..
Opens a dialog window for finding and replacing text within the current snippet
- Undo
Reverses the most recent editing operation
- Redo
Restores the most recent editing operation
- Comment
Marks the selected lines with comment characters, according to the language rules of the selected snippet
- UnComment
Removes comment characters from the selected lines
- Lower Case
Converts all selected text to lower case
- Upper Case
Converts all selected text to upper case
- Sort Ascending
Sorts selected lines in ascending order
- Sort Descending
Sorts selected lines in descending order
- Insert File
Inserts the contents of a file into the code editor at the caret. A file selection dialog window is opened.
- Hex Viewer
Displays a window with hexadecimal display of the contents of the current
snippet. This is a read-only window. gbCodeLib does not support hexadecimal editing.
- Print Black & White
Prints the contents of the code editor in black and white. This menu option prints only the code from
the code editor - unlike the File > Print options which print additional information about the source code snippet.
- Print Color
Prints the contents of the code editor in color. This menu option prints only the code from
the code editor - unlike the File > Print options which print additional information about the source code snippet.
Mouse Actions
When the code editor has focus, the following mouse actions are supported:
| Mouse Action: | | Result:
| | L-button click over text | | Changes the caret position
| | R-button click | | Displays the right click menu
| | L- button down over selection, and drag | | Moves text
| | Ctrl + L-button down over selection, and drag | | Copies text
| | L-Button click over left margin | | Selects line
| | L-Button click over left margin, and drag | | Selects multiple lines
| | Alt + L-button down, and drag | | Select columns of text
| | L- button double click over text | | Select word under cursor
| | Spin IntelliMouse mouse wheel | | Scroll the window vertically
| | Single click IntelliMouse mouse wheel | | Select the word under the cursor
| | Double click IntelliMouse mouse wheel | | Select the line under the cursor
| | Ctrl + Spin IntelliMouse mouse wheel | | Increase or decrease text font size
| | L-button down and drag splitter bar | | Split the window into multiple views or adjust the current splitter position
| | Double click splitter bar | | Split the window in half into multiple views or unsplit the window if already split
|
Keyboard Commands
When the code editor has focus, the following keyboard commands are supported:
| Command | | Keystroke
| | BookmarkNext | | Ctrl + K + N
| | BookmarkNext | | F2
| | BookmarkPrev | | Ctrl + K + P
| | BookmarkPrev | | Shift + F2
| | BookmarkToggle | | Ctrl + K + K
| | BookmarkToggle | | Ctrl + F2
| | CharLeft | | Left
| | CharLeftExtend | | Shift + Left
| | CharLeftExtendCol | | Shift + Alt + Left
| | CharRight | | Right
| | CharRightExtend | | Shift + Right
| | CharRightExtendCol | | Shift + Alt + Right
| | ChooseCommand | | Ctrl + D
| | CommentSelection | | Ctrll + K + C
| | CompleteWord | | Ctrl + Space
| | Copy | | Ctrl + C
| | Copy | | Ctrl + Insert
| | Cut | | Shift + Delete
| | Cut | | Ctrl + X
| | CutSelection | | Ctrl + Alt + W
| | Delete | | Delete
| | DeleteBack | | Backspace
| | DocumentEnd | | Ctrl + End
| | DocumentEndExtend | | Ctrl + Shift + End
| | DocumentStart | | Ctrl + Home
| | DocumentStartExtend | | Ctrl + Shift + Home
| | Find | | Alt + F3
| | Find | | Ctrl + F
| | FindNext | | F3
| | FindNextWord | | Ctrl + F3
| | FindPrev | | Shift + F3
| | FindPrevWord | | Ctrl + Shift + F3
| | FindReplace | | Ctrl + Alt + F3
| | FindReplace | | Ctrl + H
| | GoToLine | | Ctrl + G
| | GoToMatchBrace | | Ctrl + ]
| | Home | | Home
| | HomeExtend | | Shift + Home
| | IncrementalSearch | | Ctrl + I
| | IndentSelection | | Tab
| | LineCut | | Ctrl + L
| | LineDown | | Down
| | LineDownExtend | | Shift + Down
| | LineDownExtendCol | | Shift + Alt + Down
| | LineEnd | | End
| | LineEndExtend | | Shift + End
| | LineOpenAbove | | Ctrl + Shift + N
| | LineUp | | Up
| | LineUpExtend | | Shift + Up
| | LineUpExtendCol | | Shift + Alt + Up
| | ListMembers | | Ctrl + J
| | LowercaseSelection | | Ctrl + U
| | PageDown | | Next
| | PageDownExtend | | Shift + Next
| | PageUp | | PRIOR
| | PageUpExtend | | Shift + Prior
| | Paste | | Ctrl + V
| | Paste | | Shift + Insert
| | Properties | | Alt + Enter
| | QuickInfo | | Ctrl + K + I
| | RecordMacro | | Ctrl + Shift + R
| | Redo | | Ctrl + Shift + Z
| | Redo | | Ctrl + Y
| | ReverseIncrementalSearch | | Ctrl + Shift + I
| | SelectAll | | Ctrl + A
| | SelectLine | | Ctrl + Alt + F8
| | SelectSwapAnchor | | Ctrl + Shift + X
| | SentenceCut | | Ctrl + Alt + K
| | SentenceLeft | | Ctrl + Alt + Left
| | SentenceRight | | Ctrl + Alt + Right
| | SetRepeatCount | | Ctrl + R
| | ToggleOvertype | | Insert
| | ToggleWhitespaceDisplay | | Ctrl + Alt + T
| | UncommentSelection | | Ctrl + K + U
| | Undo | | Ctrl + Z
| | Undo | | Alt + Backspace
| | UnindentSelection | | Shift + Tab
| | UppercaseSelection | | Ctrl + Shift + U
| | WindowScrollDown | | Ctrl + Up
| | WindowScrollLeft | | Ctrl + PageUp
| | WindowScrollRight | | Ctrl + PageDown
| | WindowScrollUp | | Ctrl + Down
| | WordDeleteToEnd | | Ctrl + Delete
| | WordDeleteToStart | | Ctrl + Backspace
| | WordLeft | | Ctrl + Left
| | WordLeftExtend | | Ctrl + Shift + Left
| | WordRight | | Ctrl + Right
| | WordRightExtend | | Ctrl + Shift + Right
|
|