Update sync-tab-options-to-wiki.ps1 to build canonical metadata lines separately for variables and modes and simplify insertion logic. Split the previous combined label into distinct insertVariableLine and insertModeLine (with two-space Markdown line breaks), replace per-variable mode pairs with a distinct modes list and Mode/Modes label, extend the regex to recognize Mode/Modes lines, and implement a stricter canonical-layout check by validating exact metadata lines and positions. The change streamlines generation of metadata lines and fixes incorrect/fragile detection and insertion behavior around headings and blank lines.
Add support for extracting option modes from PrintConfig.cpp and including them when syncing Tab.cpp mappings to Markdown. Introduces a new PrintConfigCppPath parameter and a generalized Get-CppSourceContent helper (replaces Get-TabCppContent) with better error messages. Implements Get-OptionModesByVariable to parse def->mode assignments and Convert-ConfigOptionModeToLabel to map internal mode names to human labels. Loads PrintConfig.cpp (if provided), collects modes per variable, and appends Mode/Modes annotations to the inserted variable lines in the wiki. Also updates progress stage counts/messages, logs a warning when PrintConfig.cpp cannot be loaded, and reports the count of entries with option mode annotations.