.        GGGGGGGGGGGGGBBBBBBBBBBBBBBBBB   NNNNNNNN        NNNNNNNNEEEEEEEEEEEEEEEEEEEEEE
.     GGG::::::::::::GB::::::::::::::::B  N:::::::N       N::::::NE::::::::::::::::::::E
.   GG:::::::::::::::GB::::::BBBBBB:::::B N::::::::N      N::::::NE::::::::::::::::::::E
.  G:::::GGGGGGGG::::GBB:::::B     B:::::BN:::::::::N     N::::::NEE::::::EEEEEEEEE::::E
. G:::::G       GGGGGG  B::::B     B:::::BN::::::::::N    N::::::N  E:::::E       EEEEEE
.G:::::G                B::::B     B:::::BN:::::::::::N   N::::::N  E:::::E             
.G:::::G                B::::BBBBBB:::::B N:::::::N::::N  N::::::N  E::::::EEEEEEEEEE    
.G:::::G    GGGGGGGGGG  B:::::::::::::BB  N::::::N N::::N N::::::N  E:::::::::::::::E    
.G:::::G    G::::::::G  B::::BBBBBB:::::B N::::::N  N::::N:::::::N  E:::::::::::::::E    
.G:::::G    GGGGG::::G  B::::B     B:::::BN::::::N   N:::::::::::N  E::::::EEEEEEEEEE    
.G:::::G        G::::G  B::::B     B:::::BN::::::N    N::::::::::N  E:::::E             
. G:::::G       G::::G  B::::B     B:::::BN::::::N     N:::::::::N  E:::::E       EEEEEE
.  G:::::GGGGGGGG::::GBB:::::BBBBBB::::::BN::::::N      N::::::::NEE::::::EEEEEEEE:::::E
.   GG:::::::::::::::GB:::::::::::::::::B N::::::N       N:::::::NE::::::::::::::::::::E
.     GGG::::::GGG:::GB::::::::::::::::B  N::::::N        N::::::NE::::::::::::::::::::E
.        GGGGGG   GGGGBBBBBBBBBBBBBBBBB   NNNNNNNN         NNNNNNNEEEEEEEEEEEEEEEEEEEEEE
.
.========================================================================================
.                     G B N E   -   GFA BASIC Notepad Enhanced
.========================================================================================
.
. This document describes the main features of GBNE, how it works, the interface,
. syntax highlighting, indentation, folding, procedure list, compilation, and
. execution under Hatari. It also lists menus, icons and shortcuts.
.
. Every line begins with “.” so GBNE treats this file as comments (no coloring).
.
.========================================================================================
. 1. OVERVIEW
.========================================================================================
.
. GBNE is a modern editor for the GFA BASIC language used on Atari ST/STE.
. It provides a full and convenient environment, including:
.
. - Multi-tab editor
. - Advanced syntax highlighting for GFA BASIC
. - Smart indentation
. - Automatic folding/unfolding of PROC…RETURN, IF…ENDIF, WHILE…WEND, FOR…NEXT
. - Procedure/function list with direct navigation
. - Left/right panels for file browsing and code structure
. - Compilation pipeline using Steem + LST2GFA + GFACOMP
. - Direct launch of GFABASIC (Hatari)
. - Quick execution of .PRG files (new or existing)
. - PYG/LST/TXT/GFA file support
. - Persistent sessions (tabs, positions, panels)
. - User preferences (theme, fonts, column 80, panels)
.
.========================================================================================
. 2. FILE HANDLING
.========================================================================================
.
. Supported formats:
. - .LST
. - .PYG (with merge/inline/rept instructions)
. - .TXT
. - .GFA (generated automatically)
.
. Features:
. - Drag & drop
. - Multi-tab
. - Auto-reload when file changes externally
. - Undo/redo
. - Session restore on startup (tabs, cursor position, panels)
.
.========================================================================================
. 3. SYNTAX HIGHLIGHTING
.========================================================================================
.
. Includes:
. - GFA BASIC keywords (IF, ELSE, ENDIF, FOR, NEXT, PROC, FN, WHILE...)
. - Numbers
. - Strings
. - Operators
. - Comments (« ’ »)
. - Variables starting with $ only when placed at the start of a line
. - Internal functions
. - Labels
.
. Themes are configurable via Preferences.
.
.========================================================================================
. 4. INDENTATION & STRUCTURE
.========================================================================================
.
. GBNE supports:
.
. - Smart indentation for:
.     IF…ENDIF
.     FOR…NEXT
.     WHILE…WEND
.     REPEAT…UNTIL
.     PROC…RETURN
.
. - Automatic folding/unfolding of logical blocks
. - Navigation via:
.     * Procedure list (right panel)
.     * Folding markers in the margin
.
.========================================================================================
. 5. LEFT & RIGHT PANELS
.========================================================================================
.
. Left panel:
. - File browser for the current directory
.
. Right panel:
. - List of procedures/functions detected in the file
. - Click → jump to code
.
.========================================================================================
. 6. COMPILATION PIPELINE
.========================================================================================
.
. The “Compile” button (F9) runs the full pipeline:
.
. 1) TEMP.LST and TEMP.PYG preparation
. 2) PYG preprocessing:
.      - merge
.      - inline
.      - rept
.      - size directives
. 3) Final LST generation
. 4) Steem snapshot LST2GFA → creates TEMP.GFA
. 5) Steem snapshot GFACOMP → creates TEMP.PRG
. 6) Generated files copied to project directory
.
. Build Log displays all steps.  
. STOP button safely stops Steem and cleans temporary files.
.
.========================================================================================
. 7. EXECUTION (HATARI)
.========================================================================================
.
. GBNE allows:
.
. - Launching GFABASIC from the project folder (F4)
. - Running/Testing a PRG file (F6)
.
. Hatari automatically loads hatari.cfg in its root dir
. So it won't affect your own settings if you also have Hatari elsewhere
.
.========================================================================================
. 8. TOOLBAR : FULL TABLE
.========================================================================================
.
. [Icon]       Name                   Description                                Shortcut
.------------------------------------------------------------------------------------------
. New          New File               Create empty file                           Ctrl+N
. Open         Open File              Open a file in a tab                        Ctrl+O
. Save         Save                   Save current file                           Ctrl+S
. Save As      Save As                Save under new name                         Ctrl+Shift+S
. Folder       Open Folder            Open file directory in Explorer             (none)
. Settings     Preferences            Open preferences window                     (none)
. Log          Build Log              Toggle build log window                     (none)
. Compile      Compile                Full compilation pipeline                   F9
. GFABASIC     Run GFABASIC           Launch GFABASIC through Hatari              F4
. RUN PRG      Run PRG                Launch Hatari with PRG                      F6
. Right Panel  Toggle Right Panel     Show/hide right side panel                  Alt+Right
. Column 80    Column 80 Marker       Show/hide 80-column guide                   F7
.
.========================================================================================
. 9. KEYBOARD SHORTCUTS
.========================================================================================
.
. FILE
. -----
. Ctrl+N          New file
. Ctrl+O          Open file
. Ctrl+S          Save
. Ctrl+Shift+S    Save All
.
. SEARCH
. -------
. Ctrl+F          Find
. Ctrl+H          Replace
. F3              Find next
.
. STRUCTURE
. ----------
. F2              Fold/Unfold All PROCEDURES
. F12             Fold/Unfold Current PROCEDURE
. Ctrl+I          Smart indent
.
. COMPILATION / EXECUTION
. -------------------------
. F4              Run GFABASIC
. F6              Run PRG
. F9              Compile
.
. PANELS
. -------
. Alt+Right       Toggle right panel
. F7              Toggle 80-column guide
.
.========================================================================================
. END OF DOCUMENT
.========================================================================================
