| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Classes | Functions
lua_debugger_code_editor.h File Reference
`#include <QColor>`
`#include <QFont>`
`#include <QObject>`
`#include <QPlainTextEdit>`
`#include <QPoint>`
`#include <QRegularExpression>`
`#include <QString>`
`#include <QSyntaxHighlighter>`
`#include <QTextCharFormat>`
`#include <QTextCursor>`
`#include <QVector>`
`#include <QtGlobal>`

Go to the source code of this file.

## Classes
struct | LuaDebuggerEditorPalette
| Single source of truth for the script editor's theme-aware colours. More...
class | LuaSyntaxHighlighter
| Syntax highlighter tuned for Lua keywords, strings, numbers, comments and Lua's long-bracket strings/comments. More...
class | LuaDebuggerCodeView
| Editable code editor supporting gutter breakpoints and highlighting. More...
class | LineNumberArea
| A widget for displaying line numbers in the code editor. More...
class | LuaDebuggerFontPolicy
| Owns the dialog's font story end-to-end. More...
class | LuaDebuggerCodeTabsController
| Owns the script tab strip and the documents inside it. More...

## Functions
bool | luaDebuggerThemeIsDark ()
| Resolve the effective theme based on the debugger preference and Wireshark's current colour scheme when set to AUTO.
LuaDebuggerEditorPalette | luaDebuggerEditorPaletteFor (bool isDark)
| Return the editor palette for the requested theme.

## Detailed Description

Code editor stack: editor view, gutter, syntax highlighter, theme palette, font policy and the script-tabs controller.

## Function Documentation

## ◆ luaDebuggerEditorPaletteFor()

LuaDebuggerEditorPalette luaDebuggerEditorPaletteFor | ( | bool | isDark | ) |

Return the editor palette for the requested theme.

Parameters

  isDark | Indicates whether the dark theme should be used.

Returns
  LuaDebuggerEditorPalette The editor palette for the specified theme.