From 6bc5f8c3a3f0ef2e0a4bfb51beb756608554597e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 19 Sep 2015 12:19:17 +0100 Subject: Add simple markup support to generate display lines from strings The syntax is simply {face} to enable the given face, use \{ to escape a {, and \\ to escape a \. --- src/display_buffer.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/display_buffer.hh') diff --git a/src/display_buffer.hh b/src/display_buffer.hh index 97b717b1..9670325a 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -140,6 +140,8 @@ private: AtomList m_atoms; }; +DisplayLine parse_display_line(StringView line, Face default_face); + class DisplayBuffer : public UseMemoryDomain { public: -- cgit v1.2.3