You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say that I made a Renderer() of this text somewhere.
intmain() {
auto document = vbox({
ftxui::text("Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.")
});
auto screen = Screen::Create(Dimension::Full(), Dimension::Fit);
Render(screen, document);
screen.Print();
return0;
}
If I want to highlight the name "Ipsum is simply", is this the only way I can do it?
intmain() {
auto document = vbox({
ftxui::text("Lorem"), ftxui::text("Ipsum is simply") | ftxui::color(ftxui::Color::Red) | ftxui::bgcolor(ftxui::Color::Yellow), ftxui::text("dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.") | ftxui::color(ftxui::Color::Red) | ftxui::bgcolor(ftxui::Color::Yellow)
});
auto screen = Screen::Create(Dimension::Full(), Dimension::Fit);
Render(screen, document);
screen.Print();
return0;
}
This method doesn't work for me, so I would like to know if there is a way to highlight already pasted text?
The text was updated successfully, but these errors were encountered:
I know that you can colorize the font like this
Let's say that I made a Renderer() of this text somewhere.
If I want to highlight the name "Ipsum is simply", is this the only way I can do it?
This method doesn't work for me, so I would like to know if there is a way to highlight already pasted text?
The text was updated successfully, but these errors were encountered: