Home

Basics
Overview
Menus
Toolbar
Tree
Code Editor
Search Frame
Change History

Intermediate
Add/Delete
Keywords
Search Lists
Date/Time
Shortcut Keys
Custom Icons
HTML Export
Hyperlinks
Drag & Drop
Bookmarks
Macros
Printing
Fonts
Hex View
Easter Eggs

Advanced
Revision Control
Object Storage
Language Def
Remote Folders
Server Sync
Online Search
Import Code
gbFlashLib

Forums
Announcements
Questions
Suggestions

Personal
Webcam
Biography
Contact Me

GBIC >> gbWare >> gbCodeLib >> Code Editor
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 textChanges the caret position
    R-button clickDisplays the right click menu
    L- button down over selection, and dragMoves text
    Ctrl + L-button down over selection, and dragCopies text
    L-Button click over left marginSelects line
    L-Button click over left margin, and dragSelects multiple lines
    Alt + L-button down, and dragSelect columns of text
    L- button double click over textSelect word under cursor
    Spin IntelliMouse mouse wheelScroll the window vertically
    Single click IntelliMouse mouse wheelSelect the word under the cursor
    Double click IntelliMouse mouse wheelSelect the line under the cursor
    Ctrl + Spin IntelliMouse mouse wheelIncrease or decrease text font size
    L-button down and drag splitter barSplit the window into multiple views or adjust the current splitter position
    Double click splitter barSplit 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:

    CommandKeystroke
    BookmarkNextCtrl + K + N
    BookmarkNextF2
    BookmarkPrevCtrl + K + P
    BookmarkPrevShift + F2
    BookmarkToggleCtrl + K + K
    BookmarkToggleCtrl + F2
    CharLeftLeft
    CharLeftExtendShift + Left
    CharLeftExtendColShift + Alt + Left
    CharRightRight
    CharRightExtendShift + Right
    CharRightExtendColShift + Alt + Right
    ChooseCommandCtrl + D
    CommentSelectionCtrll + K + C
    CompleteWordCtrl + Space
    CopyCtrl + C
    CopyCtrl + Insert
    CutShift + Delete
    CutCtrl + X
    CutSelectionCtrl + Alt + W
    DeleteDelete
    DeleteBackBackspace
    DocumentEndCtrl + End
    DocumentEndExtendCtrl + Shift + End
    DocumentStartCtrl + Home
    DocumentStartExtendCtrl + Shift + Home
    FindAlt + F3
    FindCtrl + F
    FindNextF3
    FindNextWordCtrl + F3
    FindPrevShift + F3
    FindPrevWordCtrl + Shift + F3
    FindReplaceCtrl + Alt + F3
    FindReplaceCtrl + H
    GoToLineCtrl + G
    GoToMatchBraceCtrl + ]
    HomeHome
    HomeExtendShift + Home
    IncrementalSearchCtrl + I
    IndentSelectionTab
    LineCutCtrl + L
    LineDownDown
    LineDownExtendShift + Down
    LineDownExtendColShift + Alt + Down
    LineEndEnd
    LineEndExtendShift + End
    LineOpenAboveCtrl + Shift + N
    LineUpUp
    LineUpExtendShift + Up
    LineUpExtendColShift + Alt + Up
    ListMembersCtrl + J
    LowercaseSelectionCtrl + U
    PageDownNext
    PageDownExtendShift + Next
    PageUpPRIOR
    PageUpExtendShift + Prior
    PasteCtrl + V
    PasteShift + Insert
    PropertiesAlt + Enter
    QuickInfoCtrl + K + I
    RecordMacroCtrl + Shift + R
    RedoCtrl + Shift + Z
    RedoCtrl + Y
    ReverseIncrementalSearchCtrl + Shift + I
    SelectAllCtrl + A
    SelectLineCtrl + Alt + F8
    SelectSwapAnchorCtrl + Shift + X
    SentenceCutCtrl + Alt + K
    SentenceLeftCtrl + Alt + Left
    SentenceRightCtrl + Alt + Right
    SetRepeatCountCtrl + R
    ToggleOvertypeInsert
    ToggleWhitespaceDisplayCtrl + Alt + T
    UncommentSelectionCtrl + K + U
    UndoCtrl + Z
    UndoAlt + Backspace
    UnindentSelectionShift + Tab
    UppercaseSelectionCtrl + Shift + U
    WindowScrollDownCtrl + Up
    WindowScrollLeftCtrl + PageUp
    WindowScrollRightCtrl + PageDown
    WindowScrollUpCtrl + Down
    WordDeleteToEndCtrl + Delete
    WordDeleteToStartCtrl + Backspace
    WordLeftCtrl + Left
    WordLeftExtendCtrl + Shift + Left
    WordRightCtrl + Right
    WordRightExtendCtrl + Shift + Right