14.11. Editor

The right-hand pane of the dialog is a multi-tab script editor. Each tab hosts one .lua file. Standard text-editor behaviors are all there: Find (Ctrl+F) with Find Next / Find Previous / Replace / Replace All (case-sensitive, wraps); Go to Line (Ctrl+G); Undo (Ctrl+Z), Redo (Ctrl+Y / Ctrl+Shift+Z (macOS)), Cut / Copy / Paste, Select All; a context menu mirroring those plus Add / Remove Breakpoint and Run to this Line; tabs marked with a trailing * for unsaved changes plus a save / discard prompt on close; a monospace font that follows Wireshark’s main-window zoom so Ctrl++ or Ctrl+= / Ctrl+- adjust the editor text size too. Esc first hides any visible find / go-to-line bar; if neither is shown, it queues a close of the dialog.

The debugger-specific behaviors:

14.11.1. Color theme

The code-view theme has three modes: Auto (follow color scheme), Dark, and Light. The setting affects only the code editor (syntax coloring, background, cursor-line stripe); the tree panels use the normal Wireshark palette. The Dark and Light palettes are VS Code Dark+ / Light+ inspired so that Lua source colors match what most developers see in their primary editor. Auto resolves against the current Wireshark color scheme and reacts to palette changes in real time.

The choice is remembered across Wireshark restarts.