Classes | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
XmlSyntaxHighlighter Class Reference

#include <xml_syntax_highlighter.h>

Inheritance diagram for XmlSyntaxHighlighter:
Inheritance graph
[legend]

Classes

struct  Rule
 

Public Member Functions

void addTag (const QString &tag, const QTextCharFormat &format, const QString &parent=QString())
 
 XmlSyntaxHighlighter (QTextDocument *parent=nullptr)
 

Protected Member Functions

void highlightBlock (const QString &text) override
 

Private Types

using Rules = std::map< int, Rule >
 

Private Member Functions

Rules::const_iterator highlight (Rules::const_iterator active, QStringView text, int start, bool search_end, int &end)
 

Private Attributes

Rules rules
 

Detailed Description

XML SyntaxHighlighter allowing nested highlighting of XML tags

Definition at line 44 of file xml_syntax_highlighter.h.

Member Typedef Documentation

◆ Rules

using XmlSyntaxHighlighter::Rules = std::map<int, Rule>
private

Definition at line 93 of file xml_syntax_highlighter.h.

Constructor & Destructor Documentation

◆ XmlSyntaxHighlighter()

XmlSyntaxHighlighter::XmlSyntaxHighlighter ( QTextDocument *  parent = nullptr)

Definition at line 40 of file xml_syntax_highlighter.cpp.

Member Function Documentation

◆ addTag()

void XmlSyntaxHighlighter::addTag ( const QString &  tag,
const QTextCharFormat &  format,
const QString &  parent = QString() 
)

Definition at line 44 of file xml_syntax_highlighter.cpp.

◆ highlight()

XmlSyntaxHighlighter::Rules::const_iterator XmlSyntaxHighlighter::highlight ( Rules::const_iterator  active,
QStringView  text,
int  start,
bool  search_end,
int &  end 
)
private

Definition at line 66 of file xml_syntax_highlighter.cpp.

◆ highlightBlock()

void XmlSyntaxHighlighter::highlightBlock ( const QString &  text)
overrideprotected

Definition at line 122 of file xml_syntax_highlighter.cpp.

Member Data Documentation

◆ rules

Rules XmlSyntaxHighlighter::rules
private

Definition at line 94 of file xml_syntax_highlighter.h.


The documentation for this class was generated from the following files:


moveit_setup_assistant
Author(s): Dave Coleman
autogenerated on Sat May 3 2025 02:28:05