Class representing a color-annotated line of source code.
More...
#include <TextSpan.hpp>
|
bool | operator== (const TextSpan &) const =default |
|
bool | operator!= (const TextSpan &) const =default |
|
std::string | get (Code::Source &source, Colors::Color highlight_color=Colors::Color::Red) const |
| Get the current object's annotated lines of a specified source code.
|
|
|
std::string::size_type | lineStart |
|
std::string::size_type | lineEnd |
|
std::string::size_type | spanStart |
|
std::string::size_type | spanEnd |
|
std::string | file |
|
Class representing a color-annotated line of source code.
◆ get()
Get the current object's annotated lines of a specified source code.
- Parameters
-
source | The source code to use. |
highlight_color | The color of the highlight/annotation. |
- Returns
- The source code lines with highlights in ANSI string format.
The documentation for this struct was generated from the following file: